mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-02 00:42:33 +01:00
18 lines
632 B
CMake
18 lines
632 B
CMake
# Override CMake's FindBullet module:
|
|
# create an IMPORTED TARGET
|
|
|
|
include("${CMAKE_ROOT}/Modules/FindBullet.cmake")
|
|
|
|
if(BULLET_FOUND AND NOT TARGET bullet::bullet)
|
|
list(GET BULLET_LIBRARIES 0 BULLET_FIRST_LIBRARY)
|
|
set(BULLET_OTHER_LIBRARIES "${BULLET_LIBRARIES}")
|
|
list(REMOVE_AT BULLET_OTHER_LIBRARIES 0)
|
|
add_library(bullet::bullet UNKNOWN IMPORTED)
|
|
set_target_properties(bullet::bullet PROPERTIES
|
|
IMPORTED_LINK_INTERFACE_LANGUAGES "C;CXX"
|
|
IMPORTED_LOCATION "${BULLET_FIRST_LIBRARY}"
|
|
INTERFACE_LINK_LIBRARIES "${BULLET_OTHER_LIBRARIES}"
|
|
INTERFACE_INCLUDE_DIRECTORIES "${BULLET_INCLUDE_DIR}"
|
|
)
|
|
endif()
|