-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from IsabelParedes/static
Enable static targets
- Loading branch information
Showing
2 changed files
with
25 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,11 +19,19 @@ find_dependency(xproperty @xproperty_REQUIRED_VERSION@) | |
|
||
if(NOT TARGET @PROJECT_NAME@) | ||
include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]") | ||
get_target_property(@PROJECT_NAME@_INCLUDE_DIR @PROJECT_NAME@ INTERFACE_INCLUDE_DIRECTORIES) | ||
|
||
if (TARGET xvega-static) | ||
if (TARGET xvega AND xvega-static) | ||
get_target_property(@PROJECT_NAME@_INCLUDE_DIR xvega INTERFACE_INCLUDE_DIRECTORIES) | ||
get_target_property(@PROJECT_NAME@_LIBRARY xvega LOCATION) | ||
get_target_property(@PROJECT_NAME@_STATIC_LIBRARY xvega-static LOCATION) | ||
elseif (TARGET xvega) | ||
get_target_property(@PROJECT_NAME@_INCLUDE_DIR xvega INTERFACE_INCLUDE_DIRECTORIES) | ||
get_target_property(@PROJECT_NAME@_LIBRARY xvega LOCATION) | ||
elseif (TARGET xvega-static) | ||
get_target_property(@PROJECT_NAME@_INCLUDE_DIR xvega-static INTERFACE_INCLUDE_DIRECTORIES) | ||
get_target_property(@PROJECT_NAME@_STATIC_LIBRARY xvega-static LOCATION) | ||
endif () | ||
|
||
endif() | ||
|
||
set(@PROJECT_NAME@_LIBRARY "") |