diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index d12a405e..b445ece9 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,5 +1,11 @@ -add_executable(events_test ../Software/src/devboard/utils/events_test.cpp test_lib.cpp) +# Include the directory with your source files +include_directories(${CMAKE_SOURCE_DIR}/Software/src/devboard/utils) + +add_executable(events_test events_test.cpp test_lib.cpp) target_compile_definitions(events_test PRIVATE UNIT_TEST) target_link_libraries(events_test) # Link to the library from devboard/utils + +# Register your tests with CTest +add_test(NAME MyProjectTests COMMAND events_test) diff --git a/Software/src/devboard/utils/events_test.cpp b/test/events_test.cpp similarity index 100% rename from Software/src/devboard/utils/events_test.cpp rename to test/events_test.cpp