summaryrefslogtreecommitdiffstats
path: root/ucs2-interface/CMakeLists.txt
diff options
context:
space:
mode:
authortkummermehr <thorsten.kummermehr@k2l.de>2017-11-23 09:41:35 +0100
committertkummermehr <thorsten.kummermehr@k2l.de>2017-11-23 09:41:35 +0100
commitdccdd78ea136c2481f0558cb3030a9add3a2004a (patch)
treecceaf793691d74b1267ab2987127000b8e27342c /ucs2-interface/CMakeLists.txt
parent4d053bad9635c21d7f34f05fb57f654a007b2055 (diff)
UcsXml component use libxml2 instead of libmxml
Change-Id: I5b1479c8c5be81cc214292abce137c41387d2601 Signed-off-by: tkummermehr <thorsten.kummermehr@k2l.de>
Diffstat (limited to 'ucs2-interface/CMakeLists.txt')
-rw-r--r--ucs2-interface/CMakeLists.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/ucs2-interface/CMakeLists.txt b/ucs2-interface/CMakeLists.txt
index 8cd797c..f96d491 100644
--- a/ucs2-interface/CMakeLists.txt
+++ b/ucs2-interface/CMakeLists.txt
@@ -20,17 +20,18 @@
PROJECT_TARGET_ADD(ucs2-inter)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNDEBUG")
+ # Search for libs
+ find_package (LibXml2 REQUIRED)
+
# Define targets
ADD_LIBRARY(ucs2-inter STATIC ucs_lib_interf.c ucs-xml/UcsXml.c ucs-xml/UcsXml_Private.c)
-
# Library properties
SET_TARGET_PROPERTIES(ucs2-inter PROPERTIES OUTPUT_NAME ucs2interface)
# Depends on Unicens2 lib
- TARGET_LINK_LIBRARIES(ucs2-inter ucs2-lib mxml)
+ TARGET_LINK_LIBRARIES(ucs2-inter ucs2-lib ${LIBXML2_LIBRARIES})
# Define includes
TARGET_INCLUDE_DIRECTORIES(ucs2-inter
- PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
- INTERFACE mxml
+ PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${LIBXML2_INCLUDE_DIR}
)