- # Executable
- set(target "test_${module}")
- add_executable(${target} "${SRCS}")
- target_link_libraries(${target} ${GTEST_BOTH_LIBRARIES} pthread)
- set(libraries_file "${CMAKE_CURRENT_SOURCE_DIR}/test/${module}/libraries.txt")
+ # Sources
+ file(GLOB_RECURSE SRCS ${CMAKE_CURRENT_SOURCE_DIR}/test/${module}/*.cpp)
+
+ # Executable
+ set(target "anna_test_${module}")
+ add_executable(${target} ${SRCS})
+ target_link_libraries(${target} ${GTEST_BOTH_LIBRARIES} pthread)
+ set(libraries_file "${CMAKE_CURRENT_SOURCE_DIR}/test/${module}/libraries.txt")