Commit 2d91483d authored by Arnaud Le Meillour's avatar Arnaud Le Meillour
Browse files

add common lib install dir

parent 1e3d7125
...@@ -78,6 +78,12 @@ write_basic_package_version_file( ...@@ -78,6 +78,12 @@ write_basic_package_version_file(
COMPATIBILITY AnyNewerVersion COMPATIBILITY AnyNewerVersion
) )
if(BATCH)
install(TARGETS ${SHARED_TARGET}
LIBRARY DESTINATION "${INSTALL_LIBDIR_COMMON}"
)
endif()
if(CMAKE_BUILD_TYPE STREQUAL "Debug") if(CMAKE_BUILD_TYPE STREQUAL "Debug")
unset(SOURCES) unset(SOURCES)
GET_HEADER_FILES(_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/src) GET_HEADER_FILES(_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/src)
......
...@@ -20,7 +20,8 @@ endif() ...@@ -20,7 +20,8 @@ endif()
# Set installation DESTINATION # Set installation DESTINATION
set(FULL_MINOR_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}) set(FULL_MINOR_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR})
set(INSTALL_BINDIR ${CMAKE_INSTALL_BINDIR}/${PROJECT_NAME}) set(INSTALL_BINDIR ${CMAKE_INSTALL_BINDIR}/${PROJECT_NAME})
set(INSTALL_LIBDIR ${CMAKE_INSTALL_LIBDIR}/classes/${PROJECT_NAME}-${FULL_MINOR_VERSION}) set(INSTALL_LIBDIR_COMMON ${CMAKE_INSTALL_LIBDIR}/classes/common)
set(INSTALL_LIBDIR ${CMAKE_INSTALL_LIBDIR}/classes/${PROJECT_NAME}-${FULL_MINOR_VERSION}/lib)
set(INSTALL_INCLUDEDIR ${CMAKE_INSTALL_LIBDIR}/classes/${PROJECT_NAME}-${FULL_MINOR_VERSION}/include) set(INSTALL_INCLUDEDIR ${CMAKE_INSTALL_LIBDIR}/classes/${PROJECT_NAME}-${FULL_MINOR_VERSION}/include)
set(INSTALL_SOURCESDIR ${CMAKE_INSTALL_LIBDIR}/classes/${PROJECT_NAME}-${FULL_MINOR_VERSION}/src) set(INSTALL_SOURCESDIR ${CMAKE_INSTALL_LIBDIR}/classes/${PROJECT_NAME}-${FULL_MINOR_VERSION}/src)
set(INSTALL_CMAKEDIR ${CMAKE_INSTALL_LIBDIR}/classes/${PROJECT_NAME}-${FULL_MINOR_VERSION}/cmake) set(INSTALL_CMAKEDIR ${CMAKE_INSTALL_LIBDIR}/classes/${PROJECT_NAME}-${FULL_MINOR_VERSION}/cmake)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment