Skip to content
GitLab
Menu
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
6eaf2c99
Commit
6eaf2c99
authored
Aug 15, 2013
by
panjia1983
Browse files
fix cmake bug
parent
aa6217db
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeModules/Findtinyxml.cmake
View file @
6eaf2c99
...
...
@@ -6,11 +6,8 @@
# TINYXML_INCLUDE_DIR - where to find tinyxml.h, etc.
# TINYXML_LIBRARIES - List of libraries when using TinyXML.
#
INCLUDE
(
"FindPackageHandleStandardArgs"
)
IF
(
TINYXML_INCLUDE_DIRS
)
# Already in cache, be silent
SET
(
TinyXML_FIND_QUIETLY TRUE
)
ENDIF
(
TINYXML_INCLUDE_DIRS
)
FIND_PATH
(
TINYXML_INCLUDE_DIRS
"tinyxml.h"
PATH_SUFFIXES
"tinyxml"
)
...
...
@@ -21,7 +18,4 @@ PATH_SUFFIXES "tinyxml" )
# handle the QUIETLY and REQUIRED arguments and set TINYXML_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE
(
"FindPackageHandleStandardArgs"
)
FIND_PACKAGE_HANDLE_STANDARD_ARGS
(
"TinyXML"
DEFAULT_MSG TINYXML_INCLUDE_DIRS TINYXML_LIBRARY_DIRS
)
MARK_AS_ADVANCED
(
TINYXML_INCLUDE_DIRS TINYXML_LIBRARY_DIRS
)
\ No newline at end of file
test/CMakeLists.txt
View file @
6eaf2c99
...
...
@@ -36,5 +36,14 @@ if (FCL_HAVE_OCTOMAP)
endif
()
if
(
FCL_HAVE_TINYXML
)
# add_fcl_test(test_fcl_xmldata test_fcl_xmldata.cpp test_fcl_utility.cpp libsvm/svm.cpp)
add_executable
(
test_fcl_xmldata test_fcl_xmldata.cpp test_fcl_utility.cpp libsvm/svm.cpp
)
target_link_libraries
(
test_fcl_xmldata
fcl
${
TINYXML_LIBRARY_DIRS
}
${
Boost_SYSTEM_LIBRARY
}
${
Boost_THREAD_LIBRARY
}
${
Boost_DATE_TIME_LIBRARY
}
${
Boost_UNIT_TEST_FRAMEWORK_LIBRARY
}
)
add_test
(
test_fcl_xmldata
${
EXECUTABLE_OUTPUT_PATH
}
/test_fcl_xmldata
)
endif
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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