file structure
/CMakeLists.txt
/src/CMakeLists.txt
/src/algorithms.hpp
/src/algorithms.cpp
/tests/CMakeLists.txt
/tests/tests.cpp
# /tests/CMakeLists.txt
include(FetchContent)
FetchContent_Declare(
boost_ut
GIT_REPOSITORY "https://github.com/boost-ext/ut.git"
GIT_TAG "v2.1.0"
)
FetchContent_MakeAvailable(boost_ut)
add_executable(algorithms_test tests.cpp)
target_link_libraries(algorithms_test PRIVATE algorithms boost_ut)
enable_testing()
add_test(NAME Test COMMAND algorithms_test)
error msg
/tests/tests.cpp:1:10: fatal error: boost/ut.hpp: No such file or directory
1 | #include <boost/ut.hpp>
compilation terminated
make[2]: *** [tests/CMakeFiles/algorithms_test.dir/build.make:76: tests/CMakeFiles/algorithms_test.dir/tests.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:159: tests/CMakeFiles/algorithms_test.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
Am I including boost ut wrong?