blob: 70a54fdbe6f83420c56aabf3a94f997dfffbabc7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
https://code.launchpad.net/~ballogy/libindicate-qt/make-examples-and-tests-optional/+merge/82829
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt 2010-03-08 09:02:19 +0000
+++ CMakeLists.txt 2011-11-20 20:28:23 +0000
@@ -36,8 +36,16 @@
DESTINATION lib${LIB_SUFFIX}/pkgconfig)
add_subdirectory(src)
-add_subdirectory(examples)
-add_subdirectory(tests)
+
+option( BUILD_EXAMPLES "build examples" ON )
+if (BUILD_EXAMPLES)
+ add_subdirectory(examples)
+endif (BUILD_EXAMPLES)
+
+option( BUILD_TESTS "build tests" ON )
+if (BUILD_TESTS)
+ add_subdirectory(tests)
+endif (BUILD_TESTS)
# Packaging
set(ARCHIVE_NAME libindicate-qt-${indicate_qt_VERSION})
|