diff --git a/cmake/unittests.cmake b/cmake/unittests.cmake index 5df35488..69b09bba 100644 --- a/cmake/unittests.cmake +++ b/cmake/unittests.cmake @@ -60,6 +60,10 @@ if (REPERTORY_ENABLE_TESTING) ) endif() + target_compile_definitions(unittests PUBLIC + REPERTORY_TESTING + ) + target_include_directories(unittests PUBLIC ${GTEST_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR}/tests