Cmake: correctly handle not finding Marble

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-12-16 09:57:08 -08:00
parent 23265f31b5
commit 70b0b3d3f1

View file

@ -10,6 +10,9 @@ if(NOT NO_MARBLE)
include_directories(${MARBLE_INCLUDE_DIR})
else()
set(NO_MARBLE ON)
message(STATUS "building without marble widget support")
add_definitions(-DNO_MARBLE)
set(MARBLE_LIBRARIES "")
endif()
endif()
add_custom_target(link_marble_data ALL COMMAND rm -rf ./marbledata && ln -s ${CMAKE_SOURCE_DIR}/marbledata ${CMAKE_BINARY_DIR}/marbledata)
@ -17,4 +20,4 @@ else()
message(STATUS "building without marble widget support")
add_definitions(-DNO_MARBLE)
set(MARBLE_LIBRARIES "")
endif()
endif()