mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add HandleFindMarble.cmake
Marble stuff should be inside handleMarble file, this clears the Main CMakelists.txt file. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
This commit is contained in:
parent
126d9a00e4
commit
cef86356f5
2 changed files with 21 additions and 22 deletions
20
cmake/Modules/HandleFindMarble.cmake
Normal file
20
cmake/Modules/HandleFindMarble.cmake
Normal file
|
@ -0,0 +1,20 @@
|
|||
# setup marble
|
||||
|
||||
if(NOT NO_MARBLE)
|
||||
if(LIBMARBLE_FROM_PKGCONFIG)
|
||||
pkg_config_library(MARBLE libmarble REQUIRED)
|
||||
set(MARBLE_LIBRARIES "")
|
||||
else()
|
||||
find_package(MARBLE QUIET)
|
||||
if(MARBLE_FOUND)
|
||||
include_directories(${MARBLE_INCLUDE_DIR})
|
||||
else()
|
||||
set(NO_MARBLE ON)
|
||||
endif()
|
||||
endif()
|
||||
add_custom_target(link_marble_data ALL COMMAND rm -rf ./marbledata && ln -s ${CMAKE_SOURCE_DIR}/marbledata ${CMAKE_BINARY_DIR}/marbledata)
|
||||
else()
|
||||
message(STATUS "building without marble widget support")
|
||||
add_definitions(-DNO_MARBLE)
|
||||
set(MARBLE_LIBRARIES "")
|
||||
endif()
|
Loading…
Add table
Add a link
Reference in a new issue