enable_testing() include_directories(${CHECK_INCLUDE_DIRS}) include_directories(. ../src) find_package (Threads) set(LIBS ${LIBS} gtest pthread rozitm) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") add_executable(test-main test-main.cpp ) target_link_libraries(test-main ${LIBS}) add_test(test-main ${CMAKE_CURRENT_BINARY_DIR}/test-main)