~ fix unit tests not building
This commit is contained in:
parent
19531935d2
commit
7d11cc1730
|
@ -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)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
#include "../src/SharedMemory.h"
|
||||
|
||||
TEST_CASE("Demo test") {
|
||||
//REQUIRE(test() == 42);
|
||||
REQUIRE(42 == 42);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue