2016-05-10 16:40:48 +03:00
|
|
|
set(CPACK_PACKAGE_CONTACT "someone")
|
|
|
|
set(CPACK_DEB_COMPONENT_INSTALL "ON")
|
2016-05-23 20:51:33 +03:00
|
|
|
set(CPACK_DEBIAN_FILE_NAME "DEB-DEFAULT")
|
2016-05-10 16:40:48 +03:00
|
|
|
|
|
|
|
set(CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS "ON")
|
|
|
|
set(CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS_POLICY ">=")
|
|
|
|
|
|
|
|
set(CMAKE_BUILD_WITH_INSTALL_RPATH 1)
|
|
|
|
|
|
|
|
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/test_lib.hpp"
|
|
|
|
"int test_lib();\n")
|
|
|
|
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/test_lib.cpp"
|
|
|
|
"#include \"test_lib.hpp\"\nint test_lib() {return 0;}\n")
|
|
|
|
add_library(test_lib SHARED "${CMAKE_CURRENT_BINARY_DIR}/test_lib.cpp")
|
|
|
|
set_target_properties(test_lib PROPERTIES SOVERSION "0.8")
|
|
|
|
|
|
|
|
install(TARGETS test_lib LIBRARY DESTINATION lib COMPONENT libs NAMELINK_SKIP)
|
|
|
|
|
|
|
|
set(CPACK_PACKAGE_NAME "generate_shlibs_ldconfig")
|