Add ComponentCompiler::build_from_path

This commit is contained in:
Simon Hausmann 2021-03-19 17:26:19 +01:00
parent fd9d154b27
commit 9eecdefb35
5 changed files with 57 additions and 0 deletions

View file

@ -136,6 +136,9 @@ if(BUILD_TESTING)
add_executable(api_tests tests/tests.cpp)
target_link_libraries(api_tests PRIVATE SixtyFPS Catch2::Catch2)
target_compile_definitions(api_tests PRIVATE
SOURCE_DIR=\"${CMAKE_CURRENT_SOURCE_DIR}/\"
)
add_test(api_tests ${CMAKE_CURRENT_BINARY_DIR}/api_tests)
# Somehow the wrong relative rpath ends up in the binary, requiring us to change the
# working directory.