cmake_minimum_required(VERSION 3.28) project(itat_challange_olympics) set(CMAKE_CXX_STANDARD 17) find_package(Qt6 COMPONENTS Core REQUIRED Gui REQUIRED Widgets REQUIRED Network REQUIRED Quick REQUIRED ) # SET(MODULES_EXTERNAL_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external) # include_directories(BEFORE ${MODULES_EXTERNAL_DIR}) set(CMAKE_AUTORCC ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) qt_add_executable(itat_challange_olympics application.qrc main.cpp external/QJsonModel/include/QJsonModel.hpp external/QJsonModel/QJsonModel.cpp) target_include_directories(itat_challange_olympics PRIVATE external/QJsonModel/include) # add_subdirectory(${MODULES_EXTERNAL_DIR}/QJsonModel) # target_link_libraries(itat_challange_olympics PRIVATE Qt6::QJsonModelStatic) # target_include_directories(itat_challange_olympics PRIVATE ${CMAKE_BINARY_DIR}/include) target_link_libraries(itat_challange_olympics PUBLIC Qt6::Core Qt6::Gui Qt6::Widgets Qt6::Network Qt6::Quick )