Fix building C++ wrapper using Ninja

This commit is contained in:
Oliver Hamlet
2025-04-26 18:23:07 +01:00
parent 9c5b73da74
commit cc31934de4
+5
View File
@@ -41,6 +41,11 @@ add_custom_target(libloot-cxx-build
$<$<NOT:$<CONFIG:Debug>>:--release>
$<$<AND:$<CONFIG:Debug>,$<PLATFORM_ID:Windows>>:--config>
$<$<AND:$<CONFIG:Debug>,$<PLATFORM_ID:Windows>>:${CMAKE_SOURCE_DIR}/../.cargo/msvcd-config.toml>
BYPRODUCTS
"${TARGET_PATH}/$<IF:$<CONFIG:Debug>,debug,release>/${LIBLOOT_CXX_FILENAME}"
"${TARGET_PATH}/cxxbridge/libloot-cxx/src/lib.rs.cc"
"${TARGET_PATH}/cxxbridge/libloot-cxx/src/lib.rs.h"
"${TARGET_PATH}/cxxbridge/rust/cxx.h"
)
add_library(libloot-cxx INTERFACE)