File: CMakeLists.txt

package info (click to toggle)
kf6-extra-cmake-modules 6.22.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,608 kB
  • sloc: python: 668; cpp: 330; ansic: 291; xml: 182; sh: 62; makefile: 8
file content (26 lines) | stat: -rw-r--r-- 760 bytes parent folder | download | duplicates (4)
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
cmake_minimum_required(VERSION 3.5)
project(ECMGenerateDBusServiceFileTest)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../modules)

# make sure the test install dir is clean
file(REMOVE_RECURSE "${CMAKE_INSTALL_PREFIX}")
include(ECMGenerateDBusServiceFile)

# run test

ecm_generate_dbus_service_file(
   NAME org.kde.kded5
   EXECUTABLE /usr/bin/kded5
   DESTINATION ${CMAKE_INSTALL_PREFIX}/test
)

ecm_generate_dbus_service_file(
   NAME org.kde.kded5.withSystemD
   EXECUTABLE /usr/bin/kded5
   SYSTEMD_SERVICE plasma-kded.service
   DESTINATION ${CMAKE_INSTALL_PREFIX}/test
   RENAME org.kde.kded5.withSystemD.renamed.service
)

# this will be run by CTest
configure_file(check_tree.cmake.in "${CMAKE_CURRENT_BINARY_DIR}/check_tree.cmake" @ONLY)