summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeemu Rytilahti <[email protected]>2015-01-22 21:07:24 +0100
committerTeemu Rytilahti <[email protected]>2015-01-22 21:07:24 +0100
commit86951827205ef8188accb268595fa74b7d11b7b9 (patch)
tree47ea200de36c28bf5c587729af1913bcf2b55439
parentf3f4eed9d4673ff91559d0ae137134047261babd (diff)
slight cleanup + set build interface include path
-rw-r--r--CMakeLists.txt4
-rw-r--r--src/CMakeLists.txt3
2 files changed, 4 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bce1177..d935a7b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -101,8 +101,8 @@ set_package_properties("LibRaw" PROPERTIES
ecm_setup_version(${LIBKDCRAW_LIB_VERSION}
VARIABLE_PREFIX KDCRAW
- VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/libkdcraw_version.h"
- PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF5KDcrawConfigVersion.cmake"
+ VERSION_HEADER "libkdcraw_version.h"
+ PACKAGE_VERSION_FILE "KF5KDcrawConfigVersion.cmake"
SOVERSION ${LIBKDCRAW_SO_VERSION})
############## Targets #########################
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index d04f152..af3ef1f 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -7,7 +7,7 @@
kde_enable_exceptions()
include_directories(${LibRaw_INCLUDE_DIR})
-include_directories(${CMAKE_CURRENT_BINARY_DIR}/..)
+include_directories(${CMAKE_CURRENT_BINARY_DIR}/..) # required for the _version.h
add_definitions(${LibRaw_DEFINITIONS})
@@ -55,6 +55,7 @@ generate_export_header(KF5KDcraw BASE_NAME libkdcraw EXPORT_MACRO_NAME LIBKDCRAW
target_include_directories(KF5KDcraw INTERFACE
"$<INSTALL_INTERFACE:${KF5_INCLUDE_INSTALL_DIR}/KDCRAW;${KF5_INCLUDE_INSTALL_DIR}/KDCRAW/kdcraw>"
+ "$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/../>"
)
target_link_libraries(KF5KDcraw