set(TEST_RESULT_DIR ${CMAKE_BINARY_DIR}/testresults) set(TEST_ROOT ${CMAKE_CURRENT_SOURCE_DIR}) include_directories(BEFORE SYSTEM ${GMOCK_INCLUDE_DIRS}) configure_file(testconfig.h.in ${CMAKE_CURRENT_BINARY_DIR}/testconfig.h) # --- DTO tests --- set(TEST_SOURCES nodes/NodeTestSuite.cpp nodes/OncillaL0Test.cpp nodes/OncillaL1L2Test.cpp ) add_executable(liboncilla-test ${TEST_SOURCES}) target_link_libraries(liboncilla-test oncilla ${GMOCK_LIBRARIES}) add_test(liboncilla-test liboncilla-test "--gtest_output=xml:${TEST_RESULT_DIR}/")