Skip to content

Commit

Permalink
Remove debug messages from tests CMakeLists
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-pino committed Apr 30, 2024
1 parent bb97c50 commit f056924
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,9 @@ list(APPEND test_files
src/helpers_test.cpp
)

message(STATUS "CMAKE_CURRENT_BINARY_DIR: ${CMAKE_CURRENT_BINARY_DIR}")
message(STATUS "CMAKE_CURRENT_SOURCE_DIR: ${CMAKE_CURRENT_SOURCE_DIR}")
message(STATUS "test_files: ${test_files}")
message(STATUS "EXT_LIBS: ${EXT_LIBS}")
message(STATUS "EXT_LIB_DIRS: ${EXT_LIB_DIRS}")

foreach(filename ${test_files})
get_filename_component(test_name ${filename} NAME_WE)
set(target_name ${test_name}_${PROJECT_NAME})
message(STATUS "Adding test ${target_name} with file ${filename}")

add_executable(${target_name} ${filename})
target_include_directories(${target_name} PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
target_link_libraries(${target_name} oculus_driver ${EXT_LIBS} )
target_link_directories(${target_name} PUBLIC ${EXT_LIB_DIRS} ${CMAKE_CURRENT_BINARY_DIR})
target_compile_features(${target_name} PUBLIC cxx_std_17)
target_compile_definitions(${target_name} PUBLIC MAGIC_ENUM_RANGE_MAX=1024)
target_link_libraries(${target_name} oculus_driver)
endforeach()

0 comments on commit f056924

Please sign in to comment.