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