diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..469c5c3 --- /dev/null +++ b/CMakeLists.txt | |||
@@ -0,0 +1,32 @@ | |||
1 | cmake_minimum_required(VERSION 2.8) | ||
2 | |||
3 | # ECM setup | ||
4 | find_package(ECM 0.0.10 REQUIRED NO_MODULE) | ||
5 | set(CMAKE_MODULE_PATH | ||
6 | ${ECM_MODULE_PATH} | ||
7 | # ${ECM_KDE_MODULE_DIR} | ||
8 | ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules | ||
9 | ${CMAKE_MODULE_PATH}) | ||
10 | |||
11 | include(FeatureSummary) | ||
12 | include(GenerateExportHeader) | ||
13 | #include(ECMSetupVersion) | ||
14 | include(ECMGenerateHeaders) | ||
15 | include(ECMPackageConfigHelpers) | ||
16 | # include(KDEInstallDirs) | ||
17 | # include(KDEFrameworkCompilerSettings) | ||
18 | # include(KDECMakeSettings) | ||
19 | |||
20 | find_package(Qt5Core REQUIRED) | ||
21 | |||
22 | set(CMAKE_AUTOMOC ON) | ||
23 | add_definitions("-Wall -std=c++0x") | ||
24 | include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR}) | ||
25 | |||
26 | # the client | ||
27 | add_subdirectory(client) | ||
28 | |||
29 | # the resource | ||
30 | add_subdirectory(resource) | ||
31 | |||
32 | feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) | ||