aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorBalint Reczey <balint@balintreczey.hu>2013-02-24 21:14:17 +0000
committerBalint Reczey <balint@balintreczey.hu>2013-02-24 21:14:17 +0000
commite1d24fdb49f56cd1ff8d10c3c55699ebc4a7e20c (patch)
tree9212aa3422f0a299b13bfd875335f70d7c0f9cad /wiretap
parent8fdfd9b612ce0d56b7c164c07d0c75b7be89d98a (diff)
Generate abi-descriptor.xml-s in CMake builds
svn path=/trunk/; revision=47865
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/wiretap/CMakeLists.txt b/wiretap/CMakeLists.txt
index 1a9dc40370..be3976e494 100644
--- a/wiretap/CMakeLists.txt
+++ b/wiretap/CMakeLists.txt
@@ -109,6 +109,13 @@ add_library(wiretap ${LINK_MODE_LIB}
set_target_properties(wiretap PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}")
set_target_properties(wiretap PROPERTIES VERSION "0.0.0" SOVERSION 0)
+# discover and substitute list of include directories for ABI compatibility
+# checks
+get_directory_property(INCLUDE_DIRS INCLUDE_DIRECTORIES)
+list(REMOVE_DUPLICATES INCLUDE_DIRS)
+string(REGEX REPLACE ";" "\n" INCLUDE_DIRS "${INCLUDE_DIRS}")
+configure_file(../abi-descriptor.template abi-descriptor.xml)
+
target_link_libraries(wiretap ${wiretap_LIBS})
if(NOT ${ENABLE_STATIC})