summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPack/DEB_GENERATE_SHLIBS.cmake
diff options
context:
space:
mode:
authorDomen Vrankar <domen.vrankar@gmail.com>2016-05-10 13:40:48 (GMT)
committerBrad King <brad.king@kitware.com>2016-05-13 14:46:05 (GMT)
commit7e940bf74ab3496b0d89a55cf7c48dc1b15bc8ce (patch)
treeed31100dd5f82df26f2650a53f478ad0bbd5d91e /Tests/RunCMake/CPack/DEB_GENERATE_SHLIBS.cmake
parent3b648894366f86c94d4567811acb9549a81660ec (diff)
downloadCMake-7e940bf74ab3496b0d89a55cf7c48dc1b15bc8ce.zip
CMake-7e940bf74ab3496b0d89a55cf7c48dc1b15bc8ce.tar.gz
CMake-7e940bf74ab3496b0d89a55cf7c48dc1b15bc8ce.tar.bz2
CPack/Deb test changes due to breaking changes
New CPack/Deb tests and changes to old tests as package file names and inter component dependency detection was changed.
Diffstat (limited to 'Tests/RunCMake/CPack/DEB_GENERATE_SHLIBS.cmake')
-rw-r--r--Tests/RunCMake/CPack/DEB_GENERATE_SHLIBS.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/Tests/RunCMake/CPack/DEB_GENERATE_SHLIBS.cmake b/Tests/RunCMake/CPack/DEB_GENERATE_SHLIBS.cmake
new file mode 100644
index 0000000..efb0211
--- /dev/null
+++ b/Tests/RunCMake/CPack/DEB_GENERATE_SHLIBS.cmake
@@ -0,0 +1,17 @@
+set(CPACK_PACKAGE_CONTACT "someone")
+set(CPACK_DEB_COMPONENT_INSTALL "ON")
+
+set(CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS "ON")
+
+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 DESTINATION foo COMPONENT libs)
+
+set(CPACK_PACKAGE_NAME "generate_shlibs")