Skip to content
Snippets Groups Projects
Commit f7144cb9 authored by Joseph Mirabel's avatar Joseph Mirabel
Browse files

Add pkg-config flags to cmake exported targets

parent 63c56ebb
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,10 @@ set(PROJECT_DESCRIPTION
)
SET(PROJECT_USE_CMAKE_EXPORT TRUE)
# Do not support CMake older than 2.8.12
CMAKE_POLICY(SET CMP0022 NEW)
SET(PROJECT_USE_KEYWORD_LINK_LIBRARIES TRUE)
include(cmake/eigen.cmake)
include(cmake/boost.cmake)
include(cmake/python.cmake)
......
......@@ -93,7 +93,6 @@ TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${Boost_LIBRARIES})
target_include_directories(${LIBRARY_NAME} SYSTEM PUBLIC
${EIGEN3_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
$<$<BOOL:${HPP_FCL_HAVE_OCTOMAP}>:${OCTOMAP_INCLUDE_DIRS}>
)
PKG_CONFIG_USE_DEPENDENCY(${LIBRARY_NAME} assimp)
......
......@@ -21,7 +21,11 @@ endmacro(add_fcl_test)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_library(utility STATIC utility.cpp)
IF(RUN_TESTS)
add_library(utility STATIC utility.cpp)
ELSE()
add_library(utility STATIC EXCLUDE_FROM_ALL utility.cpp)
ENDIF()
target_link_libraries(utility hpp-fcl)
add_fcl_test(math math.cpp)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment