Warning, /education/marble/examples/cpp/marble-game/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 SET (TARGET marble-game)
0002 PROJECT (${TARGET})
0003 
0004 include_directories(
0005  ${CMAKE_CURRENT_SOURCE_DIR}
0006  ${CMAKE_CURRENT_BINARY_DIR}
0007 )
0008 
0009 set(${TARGET}_HDRS
0010     GameMainWindow.h
0011     CountryByShape.h
0012     CountryByFlag.h
0013     ClickOnThat.h
0014 )
0015 
0016 set(${TARGET}_SRCS
0017     gamemain.cpp 
0018     GameMainWindow.cpp
0019     CountryByShape.cpp
0020     CountryByFlag.cpp
0021     ClickOnThat.cpp
0022 )
0023 
0024 FILE (GLOB QML_FILES *.qml)
0025 marble_add_project_resources(${QML_FILES})
0026 qt_add_resources(${TARGET}_SRCS marbleGame.qrc)
0027 
0028 qt_wrap_ui(${TARGET}_SRCS game.ui)
0029 
0030 add_executable( ${TARGET} ${${TARGET}_SRCS} )
0031 
0032 target_link_libraries(
0033     ${TARGET}
0034     marblewidget
0035     marbleui
0036     Qt5::Quick
0037 )
0038 
0039 install( TARGETS ${TARGET} RUNTIME DESTINATION ${MARBLE_EXAMPLES_INSTALL_DIR}/${TARGET} )
0040 # TODO: add to qrc and get from there
0041 install( FILES MapTackRoundHeadRed.png MapTackRoundHeadGreen.png DESTINATION ${MARBLE_EXAMPLES_INSTALL_DIR}/${TARGET} )
0042 
0043 return()
0044 # TODO: qrc refers to lots of flags in marble sources
0045 # needs a custom variant of the qrc file (-> configure_file) and reading the flags via alias
0046 # TODO: do not install sources for now, MarblePlacemarkModel.h is not ready/good for public usages
0047 
0048 install( FILES
0049     ${${TARGET}_HDRS}
0050     ${${TARGET}_SRCS}
0051     ${QML_FILES}
0052     game.ui
0053     marbleGame.qrc
0054     DESTINATION ${MARBLE_EXAMPLES_INSTALL_DIR}/${TARGET}
0055 )
0056 install( FILES CMakeLists.txt.external DESTINATION ${MARBLE_EXAMPLES_INSTALL_DIR}/${TARGET} RENAME CMakeLists.txt )