install
parent
c9070f66c3
commit
58f575965c
|
@ -83,6 +83,9 @@ message("Current Source: ${CMAKE_CURRENT_SOURCE_DIR}")
|
||||||
|
|
||||||
add_library(${BLT_TARGET} SHARED ${STD_FILES} ${PROFILING_FILES} ${NBT_FILES} ${PARSE_FILES})
|
add_library(${BLT_TARGET} SHARED ${STD_FILES} ${PROFILING_FILES} ${NBT_FILES} ${PARSE_FILES})
|
||||||
|
|
||||||
|
set_target_properties(${BLT_TARGET} PROPERTIES VERSION ${PROJECT_VERSION})
|
||||||
|
set_target_properties(${BLT_TARGET} PROPERTIES SOVERSION ${PROJECT_VERSION_MAJOR})
|
||||||
|
|
||||||
target_include_directories(${BLT_TARGET} PUBLIC include/)
|
target_include_directories(${BLT_TARGET} PUBLIC include/)
|
||||||
target_include_directories(${BLT_TARGET} PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/config/)
|
target_include_directories(${BLT_TARGET} PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/config/)
|
||||||
if(${ZLIB_FOUND})
|
if(${ZLIB_FOUND})
|
||||||
|
@ -103,6 +106,18 @@ endif()
|
||||||
|
|
||||||
message("BLT ${CMAKE_PROJECT_VERSION} Successfully included!")
|
message("BLT ${CMAKE_PROJECT_VERSION} Successfully included!")
|
||||||
|
|
||||||
|
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||||
|
include(GNUInstallDirs)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
message("Installing to ${CMAKE_INSTALL_LIBDIR} with headers at ${CMAKE_INSTALL_INCLUDEDIR}")
|
||||||
|
|
||||||
|
install(TARGETS ${BLT_TARGET}
|
||||||
|
CONFIGURATIONS RelWithDebInfo
|
||||||
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
|
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||||
|
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
||||||
|
|
||||||
if(${BUILD_TESTS})
|
if(${BUILD_TESTS})
|
||||||
message("Building test")
|
message("Building test")
|
||||||
project(BLT_TESTS VERSION ${BLT_TEST_VERSION})
|
project(BLT_TESTS VERSION ${BLT_TEST_VERSION})
|
||||||
|
|
Loading…
Reference in New Issue