Fix CMake install issue (not installing headers and always building a static library)
This commit is contained in:
parent
0db50eb59c
commit
e94bb01577
|
@ -234,7 +234,7 @@ SET (REACTPHYSICS3D_SOURCES
|
|||
)
|
||||
|
||||
# Create the library
|
||||
ADD_LIBRARY(reactphysics3d STATIC ${REACTPHYSICS3D_HEADERS} ${REACTPHYSICS3D_SOURCES})
|
||||
ADD_LIBRARY(reactphysics3d ${REACTPHYSICS3D_HEADERS} ${REACTPHYSICS3D_SOURCES})
|
||||
|
||||
# Headers
|
||||
TARGET_INCLUDE_DIRECTORIES(reactphysics3d PUBLIC
|
||||
|
@ -252,10 +252,12 @@ IF(RP3D_COMPILE_TESTS)
|
|||
add_subdirectory(test/)
|
||||
ENDIF()
|
||||
|
||||
SET_TARGET_PROPERTIES(reactphysics3d PROPERTIES PUBLIC_HEADER "${REACTPHYSICS3D_HEADERS}")
|
||||
|
||||
# Install target
|
||||
INSTALL(TARGETS reactphysics3d
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/reactphysics3d
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/reactphysics3d
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}/reactphysics3d
|
||||
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/reactphysics3d
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user