-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
68 additions
and
89 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
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
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
set(local_libzip_dir ${CMAKE_CURRENT_LIST_DIR}/libzip) | ||
find_library(libzip NAMES libzip PATHS ${local_libzip_dir}/lib) | ||
|
||
if (libzip) | ||
message(STATUS "Found local libzip") | ||
add_library(libzip STATIC IMPORTED) | ||
set_target_properties(libzip PROPERTIES | ||
IMPORTED_LOCATION ${local_libzip_dir}/lib/${CMAKE_STATIC_LIBRARY_PREFIX}libzip${CMAKE_SHARED_LIBRARY_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX} | ||
INTERFACE_INCLUDE_DIRECTORIES ${local_libzip_dir}/include) | ||
|
||
else() | ||
message(STATUS "Looking for libzip in system") | ||
find_package(libzip CONFIG) # Search in system | ||
if (libzip_FOUND) | ||
message(STATUS "Found libzip") | ||
add_library(libzip INTERFACE) | ||
else() | ||
message(WARNING "Could not find libzip") | ||
endif() | ||
endif() |
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 |
---|---|---|
|
@@ -8,6 +8,5 @@ | |
./setupKatex.sh | ||
./setupTclap.sh | ||
./setupHDF5.sh | ||
./setupAsio.sh | ||
./setupXerces.sh | ||
./setupLibzip.sh |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
if (NOT TARGET xercesc) | ||
set(local_xerces_dir ${CMAKE_CURRENT_LIST_DIR}/xerces) | ||
set(CMAKE_FIND_LIBRARY_PREFIXES lib) | ||
find_library(xercesc NAMES xerces-c PATHS ${local_xerces_dir}/lib) | ||
|
||
#set(CMAKE_FIND_DEBUG_MODE TRUE) | ||
#find_package(xercesc CONFIG PATHS ${local_xerces_dir} NO_DEFAULT_PATH REQUIRED) # Search for local version | ||
#set(CMAKE_FIND_DEBUG_MODE FALSE) | ||
|
||
if (xercesc) | ||
message(STATUS "Found local xerces") | ||
#add_library(xercesc INTERFACE) | ||
|
||
add_library(xercesc STATIC IMPORTED) | ||
|
||
set_target_properties(xercesc PROPERTIES | ||
IMPORTED_LOCATION ${local_xerces_dir}/lib/${CMAKE_STATIC_LIBRARY_PREFIX}xerces-c${CMAKE_SHARED_LIBRARY_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX} | ||
INTERFACE_INCLUDE_DIRECTORIES ${local_xerces_dir}/include) | ||
|
||
else() | ||
message(STATUS "Looking for xerces in system") | ||
find_package(xercesc CONFIG) # Search in system | ||
if (xercesc_FOUND) | ||
message(STATUS " Found xerces") | ||
add_library(xercesc INTERFACE) | ||
else() | ||
message(WARNING "Could not find xerces") | ||
endif() | ||
endif() | ||
endif() |
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