Commit 5f2b2124 authored by Carl Schwan's avatar Carl Schwan 🚴
Browse files

More simple cmake improvements

parent 2d615ac7
......@@ -21,8 +21,14 @@ include(ECMGenerateHeaders)
include(ECMPoQmTools)
include(KDEClangFormat)
ecm_setup_version(${PROJECT_VERSION}
VARIABLE_PREFIX KONTRAST
SOVERSION ${PROJECT_VERSION_MAJOR}
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/config-kontrast.h"
)
################# Find dependencies #################
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Core Gui Qml QuickControls2 Svg Sql)
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Core Gui Qml QuickControls2 Widgets Sql)
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS Kirigami2 I18n CoreAddons Declarative)
################# build and install #################
......
......@@ -2,8 +2,7 @@ add_executable(kontrast
main.cpp
kontrast.cpp
savedcolormodel.cpp
resources.qrc
${kontrast_SRCS})
resources.qrc)
target_link_libraries(kontrast
Qt5::Core
......@@ -11,9 +10,9 @@ target_link_libraries(kontrast
Qt5::Qml
Qt5::Quick
Qt5::QuickControls2
Qt5::Svg
Qt5::Sql
Qt5::Widgets
KF5::I18n
KF5::CoreAddons)
install(TARGETS kontrast ${KF5_INSTALL_TARGETS_DEFAULT_ARGS})
install(TARGETS kontrast ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment