Commit 1f4791d0 authored by Laurent Montel's avatar Laurent Montel 😁

Add buildsystem

parents
project(kdebugsettings)
cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
set (QT_MIN_VERSION "5.3.0")
find_package(ECM 1.3.0 REQUIRED CONFIG)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Widgets Test)
find_package(KF5 REQUIRED COMPONENTS
CoreAddons
Config
DBusAddons
I18n
GuiAddons
IconThemes
KIO)
include(FeatureSummary)
include(ECMInstallIcons)
include(KDEInstallDirs)
include(KDECompilerSettings)
include(KDECMakeSettings)
add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
add_definitions(-DTRANSLATION_DOMAIN="kdebugsettings")
add_definitions("-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII")
add_subdirectory( src )
add_subdirectory( autotests )
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
set(kdebugsettings_SRCS
main.cpp
)
add_executable(kdebugsettings ${kdebugsettings_SRCS})
target_link_libraries(kdebugsettings Qt5::Widgets KF5::I18n)
install(TARGETS klines ${INSTALL_TARGETS_DEFAULT_ARGS} )
########### install files ###############
#install( PROGRAMS org.kde.klines.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
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