-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
28 lines (18 loc) · 1000 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
cmake_minimum_required(VERSION 3.16)
project(cutie-messaging VERSION 1.0 LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(QT_DEFAULT_MAJOR_VERSION 6)
set(QAPPLICATION_CLASS QApplication)
find_package(Qt6 REQUIRED COMPONENTS Core Quick Qml LinguistTools)
qt_standard_project_setup()
set(cutie-messaging_SOURCES src/main.cpp)
qt_add_resources(APP_RESOURCES
${CMAKE_SOURCE_DIR}/src/qml/qml.qrc)
qt_add_executable(cutie-messaging ${cutie-messaging_SOURCES} ${APP_RESOURCES})
qt_add_translations(cutie-messaging
TS_FILES ${CMAKE_SOURCE_DIR}/translations/cutie-messaging_fi.ts)
target_include_directories(cutie-messaging PUBLIC src)
target_link_libraries(cutie-messaging PUBLIC Qt::Core Qt::Quick Qt::Qml Qt::DBus)
install(TARGETS cutie-messaging RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
install(FILES cutie-messaging.desktop DESTINATION "${CMAKE_INSTALL_DATADIR}/applications")
install(FILES cutie-messaging.svg DESTINATION "${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps")