Fix install target of CMakeLists.txt file

This commit is contained in:
Daniel Chappuis 2018-04-09 18:47:33 +02:00
parent 63bc9ac033
commit 889e8ff5b3

10
CMakeLists.txt Executable file → Normal file
View File

@ -237,7 +237,7 @@ SET (REACTPHYSICS3D_SOURCES
ADD_LIBRARY(reactphysics3d STATIC ${REACTPHYSICS3D_HEADERS} ${REACTPHYSICS3D_SOURCES})
# Set the public headers
#SET_TARGET_PROPERTIES(reactphysics3d PROPERTIES PUBLIC_HEADER ${REACTPHYSICS3D_HEADERS})
SET_TARGET_PROPERTIES(reactphysics3d PROPERTIES PUBLIC_HEADER "${REACTPHYSICS3D_HEADERS}")
# Headers
TARGET_INCLUDE_DIRECTORIES(reactphysics3d PUBLIC
@ -257,8 +257,8 @@ ENDIF(COMPILE_TESTS)
# 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}/rp3d"
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}/rp3d"
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}/rp3d"
PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/rp3d/"
)