Commit 6928f8aa authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[CMake] find TinyXML with the submodule

parent 2bfd01f7
Pipeline #7031 failed with stage
in 8 minutes and 33 seconds
......@@ -52,7 +52,8 @@ SET(${PROJECT_NAME}_HEADERS
# Add Boost path to include directories.
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
ADD_REQUIRED_DEPENDENCY("tinyxml >= 2.6")
SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/find-external/TinyXML)
FIND_PACKAGE(TinyXML REQUIRED)
ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(tests)
......
......@@ -49,6 +49,7 @@ SET_TARGET_PROPERTIES(hpp-util PROPERTIES SOVERSION ${PROJECT_VERSION})
# Link against Boost libraries.
TARGET_LINK_LIBRARIES(hpp-util ${Boost_LIBRARIES})
PKG_CONFIG_USE_DEPENDENCY(hpp-util tinyxml)
TARGET_INCLUDE_DIRECTORIES(hpp-util PRIVATE ${TinyXML_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(hpp-util ${TinyXML_LIBRARY})
INSTALL(TARGETS hpp-util DESTINATION ${CMAKE_INSTALL_LIBDIR})
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment