Skip to content
Snippets Groups Projects
Commit ea452e27 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

mv Debian settings to where they are used

parent 6dc06ed5
No related branches found
No related tags found
1 merge request!2464CMake README, file headers, renaming of some files, and cleanup
......@@ -33,6 +33,7 @@ target_link_libraries(${lib}
target_include_directories(${lib}
PUBLIC
${CMAKE_SOURCE_DIR}
${BUILD_INC_DIR}
SYSTEM PUBLIC
${LibHeinz_INCLUDE_DIR}
${Boost_INCLUDE_DIRS}
......
......@@ -24,15 +24,3 @@ endif()
configure_file(${CONFIGURABLES_DIR}/BAVersion.h.in ${BUILD_INC_DIR}/BAVersion.h @ONLY)
configure_file(${CONFIGURABLES_DIR}/BABuild.h.in ${BUILD_INC_DIR}/BABuild.h @ONLY)
configure_file(${CONFIGURABLES_DIR}/BATesting.h.in ${BUILD_INC_DIR}/BATesting.h @ONLY)
string(APPEND CMAKE_CXX_FLAGS " -I${BUILD_INC_DIR}")
# -----------------------------------------------------------------------------
# configure postinst and prerm for the debian package
# -----------------------------------------------------------------------------
if(BUILD_DEBIAN)
set(CMAKE_INSTALL_PREFIX "/usr")
configure_file(${CONFIGURABLES_DIR}/postinst.in ${BUILD_VAR_DIR}/postinst @ONLY)
configure_file(${CONFIGURABLES_DIR}/prerm.in ${BUILD_VAR_DIR}/prerm @ONLY)
set(CMAKE_INSTALL_RPATH \$ORIGIN/../;\$ORIGIN/../../lib/${destination_suffix})
endif()
# configure postinst and prerm for the Debian package
CMAKE_INSTALL_PREFIX "/usr")
configure_file(${CONFIGURABLES_DIR}/postinst.in ${BUILD_VAR_DIR}/postinst @ONLY)
configure_file(${CONFIGURABLES_DIR}/prerm.in ${BUILD_VAR_DIR}/prerm @ONLY)
set(CMAKE_INSTALL_RPATH \$ORIGIN/../;\$ORIGIN/../../lib/${destination_suffix})
# BornAgain debian packaging
set(CPACK_GENERATOR DEB)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment