2015-11-17 20:04:14 +00:00
|
|
|
# setup marble
|
|
|
|
|
|
|
|
if(NOT NO_MARBLE)
|
|
|
|
if(LIBMARBLE_FROM_PKGCONFIG)
|
|
|
|
pkg_config_library(MARBLE libmarble REQUIRED)
|
|
|
|
set(MARBLE_LIBRARIES "")
|
|
|
|
else()
|
2015-12-16 18:21:58 +00:00
|
|
|
find_package(Marble QUIET)
|
2015-11-17 20:04:14 +00:00
|
|
|
if(MARBLE_FOUND)
|
|
|
|
include_directories(${MARBLE_INCLUDE_DIR})
|
|
|
|
else()
|
|
|
|
set(NO_MARBLE ON)
|
2015-12-16 17:57:08 +00:00
|
|
|
message(STATUS "building without marble widget support")
|
|
|
|
add_definitions(-DNO_MARBLE)
|
|
|
|
set(MARBLE_LIBRARIES "")
|
2015-11-17 20:04:14 +00:00
|
|
|
endif()
|
|
|
|
endif()
|
2016-01-07 17:33:28 +00:00
|
|
|
add_custom_target(link_marble_data ALL COMMAND rm -rf ./marbledata && ln -sf ${CMAKE_SOURCE_DIR}/marbledata ${CMAKE_BINARY_DIR}/marbledata)
|
2015-11-17 20:04:14 +00:00
|
|
|
else()
|
|
|
|
message(STATUS "building without marble widget support")
|
|
|
|
add_definitions(-DNO_MARBLE)
|
|
|
|
set(MARBLE_LIBRARIES "")
|
2015-12-16 17:57:08 +00:00
|
|
|
endif()
|