- if(EXISTS "${libraries_file}")
- file (STRINGS "${libraries_file}" LIBS)
- #message(STATUS "Libraries: ${LIBS}")
- target_link_libraries(${target} ${GTEST_BOTH_LIBRARIES} pthread ${LIBS})
- endif()
+ # 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")
+
+ if(EXISTS "${libraries_file}")
+ file (STRINGS "${libraries_file}" LIBS)
+ #message(STATUS "Libraries: ${LIBS}")
+ target_link_libraries(${target} ${GTEST_BOTH_LIBRARIES} pthread ${LIBS})
+ endif()