Skip to content

Commit

Permalink
Fix a bug of executing no test.
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsy committed Apr 22, 2015
1 parent c5b5e9a commit 508e74f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@ if (${BUILD_TEST} STREQUAL "ON")
set(GTEST_INCLUDE_DIRS $ENV{GTEST_INCLUDE_DIRS})
endif()

set(TEST_NAME test_spica)
set(TEST_NAME spica_tests)
set(SOURCE_FILES all_tests.cc test_geometry.cc test_vector.cc test_image.cc)

add_executable(${TEST_NAME} ${SOURCE_FILES})
target_link_libraries(${TEST_NAME} ${GTEST_LIBRARY})
target_link_libraries(${TEST_NAME} ${GTEST_MAIN_LIBRARY})
target_link_libraries(${TEST_NAME} "${LIB_PREFIX}spica_renderer${LIB_SUFFIX}")

add_test(NAME ${TEST_NAME} COMMAND ${TEST_NAME})
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} DEPENDS ${TEST_NAME})

include_directories(${CMAKE_CURRENT_LIST_DIR})
Expand Down

0 comments on commit 508e74f

Please sign in to comment.