blob: 64855367b5addb69d84a63db294c299fb9977084 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
diff -ruN kadu-0.10.0/cmake/FindKadu.cmake new/cmake/FindKadu.cmake
--- kadu-0.10.0/cmake/FindKadu.cmake 2011-08-24 08:43:41.000000000 +0200
+++ new/cmake/FindKadu.cmake 2011-09-30 23:26:39.043004993 +0200
@@ -133,10 +133,12 @@
set (KADU_PLUGINS_DIR ${KADU_DATA_DIR}/plugins)
macro (kadu_api_directories INCLUDE_DIR)
- foreach (ARG ${ARGN})
- file (GLOB API_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/${ARG}/*.h)
- install (FILES ${API_HEADERS} DESTINATION ${KADU_INSTALL_INCLUDE_DIR}/kadu/${INCLUDE_DIR}/${ARG})
- endforeach (ARG)
+ if (INSTALL_SDK)
+ foreach (ARG ${ARGN})
+ file (GLOB API_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/${ARG}/*.h)
+ install (FILES ${API_HEADERS} DESTINATION ${KADU_INSTALL_INCLUDE_DIR}/kadu/${INCLUDE_DIR}/${ARG})
+ endforeach (ARG)
+ endif (INSTALL_SDK)
endmacro (kadu_api_directories)
macro (kadu_configuration)
diff -ruN kadu-0.10.0/CMakeLists.txt new/CMakeLists.txt
--- kadu-0.10.0/CMakeLists.txt 2011-08-24 08:43:41.000000000 +0200
+++ new/CMakeLists.txt 2011-09-30 23:28:24.979005031 +0200
@@ -7,7 +7,7 @@
option (BUILD_PLUGINS "Switch to Off if you do not want to build plugins" ON)
# configuration
-option (INSTALL_CMAKE_MODULE "Install cmake modules" ON)
+option (INSTALL_SDK "Install SDK (API headers, cmake modules)" ON)
if (UNIX)
option (SIG_HANDLING_ENABLED "Define if you want system signals handling" ON)
if (UNIX AND NOT APPLE)
@@ -105,11 +105,11 @@
include (cmake/FindKadu.cmake)
include_directories (${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/kadu-core ${QT_INCLUDES})
-if (INSTALL_CMAKE_MODULE)
+if (INSTALL_SDK)
install (FILES cmake/FindKadu.cmake DESTINATION ${KADU_CMAKE_MODULES_DIR})
install (PROGRAMS translations/plugintsupdate.sh DESTINATION ${KADU_PLUGINS_DIR}/sdk)
install (FILES translations/configuration-ui.xsl DESTINATION ${KADU_PLUGINS_DIR}/sdk)
-endif (INSTALL_CMAKE_MODULE)
+endif (INSTALL_SDK)
# build
configure_file (${CMAKE_SOURCE_DIR}/kadu-config.h.cmake ${CMAKE_BINARY_DIR}/kadu-config.h)
|