~ fix unit tests not building
This commit is contained in:
parent
efe8c62493
commit
2286c59325
@ -27,7 +27,7 @@ include_directories(lib/toml)
|
||||
set(LIB_PATH "${CMAKE_SOURCE_DIR}/../library")
|
||||
|
||||
include_directories(${LIB_PATH}/include)
|
||||
add_executable(TextRenderer ${SOURCES} ${HEADERS} main/main.cpp src/TextRenderer.cpp src/TextRenderer.h)
|
||||
add_executable(TextRenderer ${SOURCES} ${HEADERS} main/main.cpp)
|
||||
|
||||
target_link_libraries(TextRenderer ${LIB_PATH}/lib/liblibrary.a)
|
||||
|
||||
@ -35,6 +35,7 @@ target_link_libraries(TextRenderer ${LIB_PATH}/lib/liblibrary.a)
|
||||
enable_testing()
|
||||
find_package(Catch2 REQUIRED)
|
||||
add_executable(UnitTests ${SOURCES} ${HEADERS} ${TESTS})
|
||||
target_link_libraries(UnitTests ${LIB_PATH}/lib/liblibrary.a)
|
||||
target_link_libraries(UnitTests Catch2::Catch2)
|
||||
|
||||
include(CTest)
|
||||
|
Loading…
Reference in New Issue
Block a user