You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011
  1. enable_testing()
  2. include_directories(${CHECK_INCLUDE_DIRS})
  3. include_directories(. ../src)
  4. find_package (Threads)
  5. set(LIBS ${LIBS} gtest pthread)
  6. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
  7. add_executable(test-${PROJECT_NAME}
  8. test-main.cpp
  9. )
  10. target_link_libraries(test-${PROJECT_NAME} ${LIBS})
  11. add_test(test-${PROJECT_NAME} ${CMAKE_CURRENT_BINARY_DIR}/test-${PROJECT_NAME})