Fix build order issue.

This commit is contained in:
Marcel Pi 2024-04-09 14:37:47 +02:00 committed by Xavier Solé Nogués
parent 4212ff6701
commit c31b6fe032
1 changed files with 25 additions and 0 deletions

View File

@ -8,6 +8,21 @@ find_package (
REQUIRED
)
set (
PYTHON_API_DEPENDENCIES
carla-client
rpc
png_static
zlibstatic
Boost::asio
Boost::python
Boost::geometry
Boost::gil
RecastNavigation::Recast
RecastNavigation::Detour
RecastNavigation::DetourCrowd
)
get_target_property (Boost_asio_TARGET_NAME Boost::asio ALIASED_TARGET)
get_target_property (Boost_python_TARGET_NAME Boost::python${Python3_VERSION_MAJOR}${Python3_VERSION_MINOR} ALIASED_TARGET)
get_target_property (Boost_geometry_TARGET_NAME Boost::geometry ALIASED_TARGET)
@ -92,3 +107,13 @@ add_custom_target (
VERBATIM
USES_TERMINAL
)
add_dependencies (
carla-python-api
${PYTHON_API_DEPENDENCIES}
)
add_dependencies (
carla-python-api-install
${PYTHON_API_DEPENDENCIES}
)