Skip to content

Commit cc3c993

Browse files
author
Acorn
committed
place generated config.h in build tree, not src tree.
1 parent fe61e23 commit cc3c993

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/CMakeLists.txt

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ if(WIN32)
33
# Correct directory separator for Windows
44
string(REPLACE "\\" "\\\\" TEST_RESOURCES_DIR "${TEST_RESOURCES_DIR}")
55
endif(WIN32)
6-
configure_file("${TEST_RESOURCES_DIR}/config.h.in" "${TEST_RESOURCES_DIR}/config.h")
7-
include_directories(.)
6+
configure_file("${TEST_RESOURCES_DIR}/config.h.in" "${CMAKE_CURRENT_BINARY_DIR}/resources/config.h")
7+
include_directories(${CMAKE_CURRENT_BINARY_DIR})
8+
89
catkin_add_gtest(test_point_inclusion test_point_inclusion.cpp)
910
target_link_libraries(test_point_inclusion ${PROJECT_NAME} ${catkin_LIBRARIES} ${Boost_LIBRARIES})
11+
12+
catkin_add_gtest(test_bounding_sphere test_bounding_sphere.cpp)
13+
target_link_libraries(test_bounding_sphere ${PROJECT_NAME} ${catkin_LIBRARIES} ${Boost_LIBRARIES})

0 commit comments

Comments
 (0)