forked from Aquaveo/xmsgrid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes to allow xmsgrid to build using CMake only
- Loading branch information
1 parent
a7b0058
commit cc86271
Showing
3 changed files
with
98 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Import the XMS::Grid target | ||
find_package(Boost QUIET REQUIRED log_setup log system filesystem serialization timer) | ||
include(${CMAKE_CURRENT_LIST_DIR}/xmsgrid-targets.cmake) | ||
|
||
# Get the root installation dir | ||
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH) | ||
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) | ||
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) | ||
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) | ||
if(_IMPORT_PREFIX STREQUAL "/") | ||
set(_IMPORT_PREFIX "") | ||
endif() | ||
|
||
include(GNUInstallDirs) | ||
|
||
# Set the FindXMSCore variables | ||
set(XMSGrid_FOUND ${XMSCore_FOUND}) | ||
set(XMSGrid_PREFIX ${CMAKE_CURRENT_LIST_DIR}) | ||
set(XMSGrid_LIBRARY_DIRS "${_IMPORT_PREFIX}/${CMAKE_INSTALL_LIBDIR}") | ||
set(XMSGrid_INCLUDE_DIRS "${_IMPORT_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}") | ||
set(XMSGrid_LIBRARIES XMS::Grid;XMS::Core) | ||
set(XMSGrid_VERSION 5.2.0) |
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 |
---|---|---|
@@ -1,10 +1,6 @@ | ||
set(EXT_INCLUDE_DIRS "${CMAKE_INSTALL_PREFIX}/include/xmscore") | ||
set(EXT_LIB_DIRS "${CMAKE_INSTALL_PREFIX}/lib") | ||
set(EXT_LIBS xmscore) | ||
|
||
set(Boost_USE_STATIC_LIBS TRUE) | ||
find_package(Boost REQUIRED log_setup log system filesystem serialization timer) | ||
list(APPEND EXT_INCLUDE_DIRS ${Boost_INCLUDE_DIRS}) | ||
list(APPEND EXT_LIB_DIRS ${Boost_LIBRARY_DIRS}) | ||
list(APPEND EXT_LIBS ${Boost_LIBRARIES}) | ||
list(APPEND EXT_LIBS ${Boost_LIBRARIES};z) | ||
|