summaryrefslogtreecommitdiffstats
path: root/libkdcraw/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'libkdcraw/CMakeLists.txt')
-rw-r--r--libkdcraw/CMakeLists.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/libkdcraw/CMakeLists.txt b/libkdcraw/CMakeLists.txt
new file mode 100644
index 0000000..4a7cf1f
--- /dev/null
+++ b/libkdcraw/CMakeLists.txt
@@ -0,0 +1,20 @@
+add_subdirectory( libraw )
+add_subdirectory( libkdcraw )
+add_subdirectory( icons )
+
+tde_conditional_add_subdirectory( BUILD_TESTS test )
+tde_conditional_add_subdirectory( BUILD_KDCRAW dcraw )
+
+
+##### other data
+
+string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" PC_EXEC_PREFIX ${EXEC_INSTALL_PREFIX} )
+string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" PC_INCLUDE_DIR ${INCLUDE_INSTALL_DIR} )
+string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" PC_LIB_DIR ${LIB_INSTALL_DIR} )
+
+configure_file( ${PROJECT_NAME}.pc.cmake ${PROJECT_NAME}.pc @ONLY )
+
+install(
+ FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc
+ DESTINATION ${PKGCONFIG_INSTALL_DIR}
+)