Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
hpp-fcl
Commits
f7144cb9
Commit
f7144cb9
authored
Nov 19, 2019
by
Joseph Mirabel
Browse files
Add pkg-config flags to cmake exported targets
parent
63c56ebb
Changes
3
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
f7144cb9
...
...
@@ -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
)
...
...
src/CMakeLists.txt
View file @
f7144cb9
...
...
@@ -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
)
...
...
test/CMakeLists.txt
View file @
f7144cb9
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment