Browse Source

cmake: skip bin and lib install for macOS framework builds

Signed-off-by: falkTX <falktx@falktx.com>
fix-audiofile-buffering
falkTX 1 year ago
parent
commit
03f1f78be6
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 24 additions and 20 deletions
  1. +24
    -20
      cmake/CMakeLists.txt

+ 24
- 20
cmake/CMakeLists.txt View File

@@ -686,9 +686,11 @@ add_executable(carla-bridge-native)


set_common_target_properties(carla-bridge-native) set_common_target_properties(carla-bridge-native)


install(TARGETS carla-bridge-native
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
if(NOT (APPLE AND ${CARLA_BUILD_FRAMEWORKS}))
install(TARGETS carla-bridge-native
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
endif()


target_compile_definitions(carla-bridge-native target_compile_definitions(carla-bridge-native
PRIVATE PRIVATE
@@ -774,9 +776,11 @@ add_executable(carla-discovery-native)


set_common_target_properties(carla-discovery-native) set_common_target_properties(carla-discovery-native)


install(TARGETS carla-discovery-native
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
if(NOT (APPLE AND ${CARLA_BUILD_FRAMEWORKS}))
install(TARGETS carla-discovery-native
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
endif()


target_include_directories(carla-discovery-native target_include_directories(carla-discovery-native
PRIVATE PRIVATE
@@ -912,18 +916,18 @@ target_sources(carla-standalone
${carla-standalone-public-headers} ${carla-standalone-public-headers}
) )


install(TARGETS carla-standalone
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/carla
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/carla
FRAMEWORK DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

if(APPLE AND ${CARLA_BUILD_FRAMEWORKS}) if(APPLE AND ${CARLA_BUILD_FRAMEWORKS})
install(TARGETS install(TARGETS
carla-bridge-native carla-bridge-native
carla-discovery-native carla-discovery-native
DESTINATION ${CMAKE_INSTALL_LIBDIR}/carla-standalone.framework) DESTINATION ${CMAKE_INSTALL_LIBDIR}/carla-standalone.framework)
else()
install(TARGETS carla-standalone
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/carla
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/carla
FRAMEWORK DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
endif() endif()


####################################################################################################################### #######################################################################################################################
@@ -1013,18 +1017,18 @@ target_sources(carla-utils
${carla-utils-public-headers} ${carla-utils-public-headers}
) )


install(TARGETS carla-utils
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/carla
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/carla
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
FRAMEWORK DESTINATION ${CMAKE_INSTALL_LIBDIR}
)

if(APPLE AND ${CARLA_BUILD_FRAMEWORKS}) if(APPLE AND ${CARLA_BUILD_FRAMEWORKS})
install(TARGETS install(TARGETS
carla-bridge-native carla-bridge-native
carla-discovery-native carla-discovery-native
DESTINATION ${CMAKE_INSTALL_LIBDIR}/carla-utils.framework) DESTINATION ${CMAKE_INSTALL_LIBDIR}/carla-utils.framework)
else()
install(TARGETS carla-utils
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/carla
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/carla
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
FRAMEWORK DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
endif() endif()


####################################################################################################################### #######################################################################################################################


Loading…
Cancel
Save