new_alterator/CMakeLists.txt

51 lines
1.3 KiB
CMake

cmake_minimum_required(VERSION 3.14)
project(new_alterator LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Quick QuickWidgets DBus)
project(new_alterator
LANGUAGES CXX
VERSION 0.1
DESCRIPTION "Front end of new alterator")
set(SOURCES
${CMAKE_SOURCE_DIR}/src/alterator_loader.cpp
${CMAKE_SOURCE_DIR}/src/dist_info.cpp
${CMAKE_SOURCE_DIR}/src/src.qrc)
set(HEADERS
${CMAKE_SOURCE_DIR}/include/alterator_loader.h
${CMAKE_SOURCE_DIR}/include/dist_info.h)
set(RESOURCES
${CMAKE_SOURCE_DIR}/resources/wiki_logo.svg)
set(SHARED
${CMAKE_SOURCE_DIR}/shared/shared.qrc)
add_executable(new_alterator ${CMAKE_SOURCE_DIR}/src/main.cpp
${SOURCES}
${SHARED}
${HEADERS})
#add_library(new_alterator_lib SHARED ${SHARED})
#target_link_libraries(new_alterator new_alterator_lib)
target_link_libraries(new_alterator
Qt${QT_VERSION_MAJOR}::Core
Qt${QT_VERSION_MAJOR}::Quick
Qt${QT_VERSION_MAJOR}::QuickWidgets
Qt${QT_VERSION_MAJOR}::DBus)