fix(cmake): fix USE_BUNDLED_DEPS=ON and BUILD_FALCO_UNIT_TESTS=ON

Signed-off-by: Luca Guerra <luca@guerra.sh>
This commit is contained in:
Luca Guerra
2024-03-25 10:20:37 +00:00
committed by poiana
parent 12cd72a396
commit 8421e4b122

View File

@@ -65,10 +65,13 @@ PRIVATE
${CMAKE_CURRENT_BINARY_DIR} # we need it to include `falco_test_var.h` ${CMAKE_CURRENT_BINARY_DIR} # we need it to include `falco_test_var.h`
) )
get_target_property(FALCO_APPLICATION_LIBRARIES falco_application LINK_LIBRARIES)
target_link_libraries(falco_unit_tests target_link_libraries(falco_unit_tests
falco_application falco_application
GTest::gtest GTest::gtest
GTest::gtest_main GTest::gtest_main
${FALCO_APPLICATION_LIBRARIES}
) )
if (EMSCRIPTEN) if (EMSCRIPTEN)