@@ -65,7 +65,7 @@ add_executable(bar main.cpp)
|
||||
target_link_libraries(bar bar_lib ${GTKMM_LIBRARIES} ${LAYERSHELL_LIBRARIES} ${WEBKIT_LIBRARIES} ${CURL_LIBRARIES} nlohmann_json::nlohmann_json)
|
||||
|
||||
# ---- Tests (Catch2) ----
|
||||
find_package(Catch2 REQUIRED)
|
||||
find_package(Catch2 3 REQUIRED)
|
||||
|
||||
add_executable(bar_tests
|
||||
tests/string_helper_tests.cpp
|
||||
@@ -73,7 +73,7 @@ add_executable(bar_tests
|
||||
target_include_directories(bar_tests PRIVATE
|
||||
include
|
||||
)
|
||||
target_link_libraries(bar_tests PRIVATE Catch2::Catch2 bar_lib)
|
||||
target_link_libraries(bar_tests PRIVATE Catch2::Catch2WithMain)
|
||||
|
||||
if(ENABLE_COVERAGE)
|
||||
target_compile_options(bar_tests PRIVATE -O0 -g --coverage)
|
||||
|
||||
Reference in New Issue
Block a user