Add linking to cmake list.
@@ -46,8 +46,13 @@ endif()
# Now simply link against gtest or gtest_main as needed. Eg
set(TEST_SOURCES
+ tests/gtest_main.cpp
tests/constraints.cpp
- tests/gtest_main.cpp)
+ tests/test_poly_geometric_path.cpp
+ )
add_executable(tests ${TEST_SOURCES})
-target_link_libraries(tests gmock gtest ${CMAKE_THREAD_LIBS_INIT} toppra)
+target_link_libraries(tests toppra gmock gtest ${CMAKE_THREAD_LIBS_INIT})
+target_include_directories(tests PUBLIC
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
+ )
