CMakeLists.txt 702 B

12345678910111213141516171819202122
  1. cmake_minimum_required(VERSION 2.8.12)
  2. project(CCats-GUI LANGUAGES CXX)
  3. set(CMAKE_INCLUDE_CURRENT_DIR ON)
  4. set(CMAKE_AUTOMOC ON)
  5. set(CMAKE_AUTORCC ON)
  6. set(CMAKE_CXX_STANDARD 11)
  7. set(CMAKE_CXX_STANDARD_REQUIRED ON)
  8. find_package(Threads)
  9. find_package(Boost 1.67 REQUIRED COMPONENTS system)
  10. find_package(Qt5 COMPONENTS Core Quick REQUIRED)
  11. find_package(PkgConfig REQUIRED)
  12. pkg_check_modules(JSONCPP REQUIRED jsoncpp)
  13. add_executable(${PROJECT_NAME} src/main.cpp src/qmlhandler.cpp src/qml.qrc)
  14. include_directories(${Boost_INCLUDE_DIR} ${JSONCPP_INCLUDEDIR} include)
  15. target_link_libraries(${PROJECT_NAME} PRIVATE ${CMAKE_THREAD_LIBS_INIT} ${JSONCPP_LIBRARIES} ${Boost_LIBRARIES} Qt5::Core Qt5::Quick)