Warning, /education/marble/examples/cpp/marble-game/CMakeLists.txt.external is written in an unsupported language. File is not indexed.
0001 cmake_minimum_required(VERSION 2.8.12) 0002 0003 project(marble-game) 0004 0005 find_package(Qt5Widgets REQUIRED) 0006 find_package(Qt5Quick REQUIRED) 0007 find_package(Marble REQUIRED) 0008 0009 set(CMAKE_AUTOMOC TRUE) 0010 0011 set(marble-game_SRCS 0012 gamemain.cpp 0013 GameMainWindow.cpp 0014 CountryByShape.cpp 0015 CountryByFlag.cpp 0016 ClickOnThat.cpp 0017 ) 0018 0019 # TODO: qrc refers to lots of flags in marble sources 0020 # needs a custom variant of the qrc file (-> configure_file) and reading the flags via alias 0021 qt5_add_resources(marble-game_SRCS marbleGame.qrc) 0022 qt5_wrap_ui(marble-game_SRCS game.ui) 0023 0024 add_executable(marble-game ${marble-game_SRCS}) 0025 0026 target_link_libraries(marble-game 0027 Marble 0028 Qt5::Widgets 0029 Qt5::Quick 0030 )