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)
|
|
|
|
|
|
|
|
find_package(Qt6 6.2 REQUIRED COMPONENTS Quick Multimedia)
|
|
|
|
|
|
|
|
|
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
|
|
|
|
QML_FILES Main.qml
|
|
|
|
QML_FILES AudioInfoBox.qml
|
|
|
|
QML_FILES ImageButton.qml
|
|
|
|
|
|
|
|
RESOURCES
|
|
|
|
Assets/Images/Boygenius_-_the_record.jpg
|
2024-07-09 12:21:48 +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 11:39:55 +02:00
|
|
|
target_link_libraries(alisa
|
2024-07-08 16:08:21 +02:00
|
|
|
PRIVATE Qt6::Quick Qt6::Multimedia
|
|
|
|
)
|
|
|
|
|
|
|
|
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}
|
|
|
|
)
|