12345678910111213141516171819202122 |
- cmake_minimum_required(VERSION 2.8.12)
- project(CCats-GUI LANGUAGES CXX)
- set(CMAKE_INCLUDE_CURRENT_DIR ON)
- set(CMAKE_AUTOMOC ON)
- set(CMAKE_AUTORCC ON)
- set(CMAKE_CXX_STANDARD 11)
- set(CMAKE_CXX_STANDARD_REQUIRED ON)
- find_package(Threads)
- find_package(Boost 1.67 REQUIRED COMPONENTS system filesystem)
- find_package(Qt5 COMPONENTS Core Quick REQUIRED)
- find_package(PkgConfig REQUIRED)
- pkg_check_modules(JSONCPP REQUIRED jsoncpp)
- add_definitions(-DQT_NO_DEBUG_OUTPUT)
- add_executable(${PROJECT_NAME} src/main.cpp src/cmdmanager.cpp src/qmlhandler.cpp src/jsonhandler.cpp src/qml.qrc src/config.cpp include/qmlhandler.h)
- include_directories(${Boost_INCLUDE_DIR} ${JSONCPP_INCLUDEDIR} include)
- target_link_libraries(${PROJECT_NAME} PRIVATE ${CMAKE_THREAD_LIBS_INIT} ${JSONCPP_LIBRARIES} ${Boost_LIBRARIES} Qt5::Core Qt5::Quick)
|