aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-09-20 18:54:27 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:09 -0300
commit614bab3782a20d534f3b17ba35d69518a9ac73c3 (patch)
treefe076f8e7efa36317101b6b686ce388203ef0032 /data
parented78ef787f52a9c5f7d791e3f02a853c88ad6e3f (diff)
Use CMAKE_<CONFIG>_POSTFIX on config files, used for cmake and pkgconfig.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'data')
-rw-r--r--data/ApiExtractorConfig.cmake.in6
-rw-r--r--data/CMakeLists.txt7
-rw-r--r--data/apiextractor.pc.in2
3 files changed, 11 insertions, 4 deletions
diff --git a/data/ApiExtractorConfig.cmake.in b/data/ApiExtractorConfig.cmake.in
index 666defb6..3866829e 100644
--- a/data/ApiExtractorConfig.cmake.in
+++ b/data/ApiExtractorConfig.cmake.in
@@ -4,11 +4,11 @@
SET(APIEXTRACTOR_INCLUDE_DIR "@CMAKE_INSTALL_PREFIX@/include/apiextractor@apiextractor_SUFFIX@")
if(MSVC)
- SET(APIEXTRACTOR_LIBRARY "@LIB_INSTALL_DIR@/@CMAKE_SHARED_LIBRARY_PREFIX@apiextractor@apiextractor_SUFFIX@.lib")
+ SET(APIEXTRACTOR_LIBRARY "@LIB_INSTALL_DIR@/@CMAKE_SHARED_LIBRARY_PREFIX@apiextractor@apiextractor_SUFFIX@@LIBRARY_OUTPUT_SUFFIX@.lib")
elseif(WIN32)
- SET(APIEXTRACTOR_LIBRARY "@CMAKE_INSTALL_PREFIX@/bin/@CMAKE_SHARED_LIBRARY_PREFIX@apiextractor@apiextractor_SUFFIX@@CMAKE_SHARED_LIBRARY_SUFFIX@")
+ SET(APIEXTRACTOR_LIBRARY "@CMAKE_INSTALL_PREFIX@/bin/@CMAKE_SHARED_LIBRARY_PREFIX@apiextractor@apiextractor_SUFFIX@@LIBRARY_OUTPUT_SUFFIX@@CMAKE_SHARED_LIBRARY_SUFFIX@")
else()
- SET(APIEXTRACTOR_LIBRARY "@LIB_INSTALL_DIR@/@CMAKE_SHARED_LIBRARY_PREFIX@apiextractor@apiextractor_SUFFIX@@CMAKE_SHARED_LIBRARY_SUFFIX@")
+ SET(APIEXTRACTOR_LIBRARY "@LIB_INSTALL_DIR@/@CMAKE_SHARED_LIBRARY_PREFIX@apiextractor@apiextractor_SUFFIX@@LIBRARY_OUTPUT_SUFFIX@@CMAKE_SHARED_LIBRARY_SUFFIX@")
endif()
SET(APIEXTRACTOR_DOCSTRINGS_DISABLED @DISABLE_DOCSTRINGS@)
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
index 66b2f967..b824e58a 100644
--- a/data/CMakeLists.txt
+++ b/data/CMakeLists.txt
@@ -1,3 +1,10 @@
+if (CMAKE_BUILD_TYPE STREQUAL "Debug")
+ set(LIBRARY_OUTPUT_SUFFIX ${CMAKE_DEBUG_POSTFIX})
+else()
+ set(LIBRARY_OUTPUT_SUFFIX ${CMAKE_RELEASE_POSTFIX})
+endif()
+
+
# create pkg-config file
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/apiextractor.pc.in"
"${CMAKE_CURRENT_BINARY_DIR}/apiextractor${apiextractor_SUFFIX}.pc" @ONLY)
diff --git a/data/apiextractor.pc.in b/data/apiextractor.pc.in
index 5b59fc63..7559b9c7 100644
--- a/data/apiextractor.pc.in
+++ b/data/apiextractor.pc.in
@@ -7,5 +7,5 @@ Name: apiextractor
Description: Qt4 Binding Generator library
Requires: QtCore
Version: @apiextractor_VERSION@
-Libs: -L${libdir} -lapiextractor@apiextractor_SUFFIX@
+Libs: -L${libdir} -lapiextractor@apiextractor_SUFFIX@@LIBRARY_OUTPUT_SUFFIX@
Cflags: -I${includedir}/apiextractor@apiextractor_SUFFIX@