64 lines
1.7 KiB
CMake
64 lines
1.7 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 #[[QmlTypes]])
|
|
|
|
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/main.cpp
|
|
${CMAKE_SOURCE_DIR}/src/dbus_connector.cpp)
|
|
|
|
set(HEADERS
|
|
${CMAKE_SOURCE_DIR}/include/alterator_loader.h
|
|
${CMAKE_SOURCE_DIR}/include/dist_info.h
|
|
${CMAKE_SOURCE_DIR}/include/dbus_connector.h)
|
|
|
|
set(RESOURCES
|
|
${CMAKE_SOURCE_DIR}/resources/wiki_logo.svg
|
|
${CMAKE_SOURCE_DIR}/resources/DistInfo.qml
|
|
${CMAKE_SOURCE_DIR}/resources/Test.qml
|
|
${CMAKE_SOURCE_DIR}/resources/resources.qrc)
|
|
|
|
set(SHARED
|
|
${CMAKE_SOURCE_DIR}/shared/AlteratorWindow.qml
|
|
${CMAKE_SOURCE_DIR}/shared/AlteratorToolBar.qml
|
|
${CMAKE_SOURCE_DIR}/shared/TextWithHeader.qml
|
|
${CMAKE_SOURCE_DIR}/shared/shared.qrc
|
|
${CMAKE_SOURCE_DIR}/shared/qmldir)
|
|
|
|
add_executable(new_alterator
|
|
${CMAKE_SOURCE_DIR}/shared/shared.qrc
|
|
${CMAKE_SOURCE_DIR}/resources/resources.qrc
|
|
${HEADERS}
|
|
${SOURCES}
|
|
)
|
|
|
|
#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
|
|
# Qt${QT_VERSION_MAJOR}::QmlTypes
|
|
)
|