Skip to content

Commit

Permalink
fix unit test link
Browse files Browse the repository at this point in the history
  • Loading branch information
sksat committed Nov 14, 2024
1 parent a704e9f commit cca911f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,12 @@ if(GOOGLE_TEST)
file(GLOB_RECURSE TEST_FILES ${CMAKE_CURRENT_LIST_DIR}/src/test_*.cpp)
# Uncomment the following line to exclude any files that match the REGEX from TEST_FILES
# list(FILTER TEST_FILES EXCLUDE REGEX ${CMAKE_CURRENT_LIST_DIR}/src/test_example.cpp)
include_directories(${TEST_PROJECT_NAME})

add_executable(${TEST_PROJECT_NAME} ${TEST_FILES})
target_link_libraries(${TEST_PROJECT_NAME} gtest gtest_main gmock)
target_link_libraries(${TEST_PROJECT_NAME} MATH_PHYSICS)
include_directories(${TEST_PROJECT_NAME})
target_link_libraries(${TEST_PROJECT_NAME} MATH_PHYSICS ${NRLMSISE00_LIB})

add_test(NAME s2e-test COMMAND ${TEST_PROJECT_NAME})
enable_testing()

Expand Down

0 comments on commit cca911f

Please sign in to comment.