File: CMakeLists.txt

package info (click to toggle)
kshutdown 2.0beta9-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,232 kB
  • ctags: 432
  • sloc: cpp: 3,241; sh: 197; makefile: 5
file content (33 lines) | stat: -rw-r--r-- 779 bytes parent folder | download | duplicates (2)
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
29
30
31
32
33

# DOC: http://qtnode.net/wiki/Qt_with_cmake

project(kshutdown)

cmake_minimum_required(VERSION 2.4.0)

find_package(KDE4 REQUIRED)

# find KWorkspace package
find_path(
	KWORKSPACE_INCLUDE_DIR NAMES kworkspace/kworkspace.h
	PATHS ${KDE4_INCLUDES}
)
find_library(
	KWORKSPACE_LIBS NAMES kworkspace
	PATHS ${KDE4_LIB_DIR}
)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(KWorkspace DEFAULT_MSG KWORKSPACE_LIBS KWORKSPACE_INCLUDE_DIR)

if (NOT KWORKSPACE_FOUND)
	message(FATAL_ERROR "KDE Workspace headers not found. Try to install \"kdebase-workspace-dev\" package.")
endif (NOT KWORKSPACE_FOUND)

add_definitions(${KDE4_DEFINITIONS})

include_directories(${KDE4_INCLUDES})
link_directories(${KDE4_LIB_DIR})

add_subdirectory(po)
add_subdirectory(src)