summaryrefslogtreecommitdiff
path: root/libkolabxml/lib/php/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'libkolabxml/lib/php/CMakeLists.txt')
-rw-r--r--libkolabxml/lib/php/CMakeLists.txt11
1 files changed, 8 insertions, 3 deletions
diff --git a/libkolabxml/lib/php/CMakeLists.txt b/libkolabxml/lib/php/CMakeLists.txt
index 2d95c36..7cfc5c7 100644
--- a/libkolabxml/lib/php/CMakeLists.txt
+++ b/libkolabxml/lib/php/CMakeLists.txt
@@ -28,9 +28,14 @@ SET_TARGET_PROPERTIES(phpbindings PROPERTIES PREFIX "")
configure_file(test.php ${CMAKE_CURRENT_BINARY_DIR} COPYONLY)
-install(TARGETS phpbindings LIBRARY DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/phpbindings)
+if (KOLAB_PHP_INSTALL_DIR)
+ set(PHP_INSTALL_DIR ${KOLAB_PHP_INSTALL_DIR})
+else (KOLAB_PHP_INSTALL_DIR)
+ set(PHP_INSTALL_DIR ${CMAKE_CURRENT_BINARY_DIR}/phpbindings)
+endif (KOLAB_PHP_INSTALL_DIR)
+
+install(TARGETS phpbindings LIBRARY DESTINATION ${PHP_INSTALL_DIR})
install( FILES
${CMAKE_CURRENT_BINARY_DIR}/kolabformat.php
- test.php
- DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/phpbindings) \ No newline at end of file
+ DESTINATION ${PHP_INSTALL_DIR}) \ No newline at end of file