Alisa/native/CMakeLists.txt

46 lines
956 B
Text
Raw Permalink Normal View History

2024-07-08 16:08:21 +02:00
cmake_minimum_required(VERSION 3.16)
2024-07-09 11:39:55 +02:00
project(Alisa VERSION 0.1 LANGUAGES CXX)
2024-07-08 16:08:21 +02:00
set(CMAKE_AUTOMOC ON)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
2024-07-09 17:50:34 +02:00
find_package(Qt6 6.2 REQUIRED COMPONENTS Quick)
2024-07-08 16:08:21 +02:00
2024-07-09 11:39:55 +02:00
qt_add_executable(alisa
2024-07-08 16:08:21 +02:00
main.cpp
)
2024-07-09 11:39:55 +02:00
qt_add_qml_module(alisa
URI Alisa
2024-07-08 16:08:21 +02:00
VERSION 1.0
2024-07-09 17:50:34 +02:00
QML_FILES
Main.qml
2024-07-11 10:49:13 +02:00
MainPage.qml
LoginScreen.qml
2024-07-11 18:34:40 +02:00
AddData.qml
2024-07-11 23:19:24 +02:00
AddGroup.qml
2024-07-08 16:08:21 +02:00
RESOURCES
2024-07-09 17:50:34 +02:00
Assets/Icons/turbo.svg
2024-07-08 16:08:21 +02:00
)
2024-07-09 11:39:55 +02:00
set_target_properties(alisa PROPERTIES
MACOSX_BUNDLE_GUI_IDENTIFIER ninja.missing.alisa
2024-07-08 16:08:21 +02:00
MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
MACOSX_BUNDLE TRUE
WIN32_EXECUTABLE TRUE
)
2024-07-09 17:50:34 +02:00
target_link_libraries(alisa PRIVATE
Qt6::Quick
2024-07-08 16:08:21 +02:00
)
include(GNUInstallDirs)
2024-07-09 11:39:55 +02:00
install(TARGETS alisa
2024-07-08 16:08:21 +02:00
BUNDLE DESTINATION .
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)