Add RUNTIME and ARCHIVE destinations for library installation

This is needed for e.g. windows on which libraries are installed
into RUNTIME/ARCHIVE destinations (see cmake docs on install(TARGETS)).
This commit is contained in:
Dmitry Marakasov 2015-03-26 19:37:45 +03:00
parent 8bdc43417d
commit 81bb0d5847

View File

@ -210,7 +210,11 @@ IF(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
# install
INSTALL(FILES ${LIBRARY_HEADERS} ${PROJECT_BINARY_DIR}/SDL2pp/Config.hh DESTINATION include/SDL2pp)
INSTALL(FILES ${LIBRARY_EXTERNAL_HEADERS} DESTINATION include/SDL2pp/external)
INSTALL(TARGETS SDL2pp LIBRARY DESTINATION lib)
INSTALL(TARGETS SDL2pp
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
INSTALL(FILES ${PROJECT_BINARY_DIR}/sdl2pp.pc DESTINATION ${PKGCONFIGDIR})
ELSE(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
MESSAGE(STATUS "libSDL2pp ${SDL2PP_VERSION} bundled build")