Unverified Commit 72783146 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by GitHub
Browse files

Merge pull request #21 from nim65s/devel

[CMake] tests require boost headers
parents e7f401cf ff974fcd
......@@ -20,6 +20,7 @@
#
MACRO(DEFINE_TEST NAME)
ADD_UNIT_TEST(${NAME} ${NAME}.cc)
TARGET_INCLUDE_DIRECTORIES(${NAME} PRIVATE ${Boost_INCLUDE_DIRS})
TARGET_LINK_LIBRARIES(${NAME} ${PROJECT_NAME})
ENDMACRO(DEFINE_TEST)
......@@ -33,5 +34,6 @@ DEFINE_TEST(timer)
SET(HPP_LOGGINGDIR "${CMAKE_CURRENT_BINARY_DIR}")
CONFIG_FILES(run_debug.sh)
ADD_EXECUTABLE(debug debug.cc)
TARGET_INCLUDE_DIRECTORIES(debug PRIVATE ${Boost_INCLUDE_DIRS})
TARGET_LINK_LIBRARIES(debug ${PROJECT_NAME})
ADD_TEST(NAME debug COMMAND ${RUNTIME_OUTPUT_DIRECTORY}/run_debug.sh)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment