~ fix unit tests not building

This commit is contained in:
Johannes Theiner 2019-12-05 09:36:57 +01:00
parent 19531935d2
commit 7d11cc1730
2 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@ enable_testing()
find_package(Catch2 REQUIRED)
add_executable(UnitTests ${SOURCES} ${HEADERS} ${TESTS})
target_link_libraries(UnitTests Catch2::Catch2)
target_link_libraries(UnitTests ${LIB_PATH}/lib/liblibrary.a)
include(CTest)
include(Catch)

View File

@ -2,6 +2,6 @@
#include "../src/SharedMemory.h"
TEST_CASE("Demo test") {
//REQUIRE(test() == 42);
REQUIRE(42 == 42);
}