diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2018-04-18 19:47:48 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-05-03 12:08:42 (GMT) |
commit | edcb545a24ed2df83813a89a20bb2beefe0531c1 (patch) | |
tree | c872ba1b2176113f9a4e81d4649b4643e439bb62 /Tests/RunCMake/install/TARGETS-NAMELINK_COMPONENT-lib-check.cmake | |
parent | 0212d7c7629bb1a866da4f6c69b780c6d43f26f3 (diff) | |
download | CMake-edcb545a24ed2df83813a89a20bb2beefe0531c1.zip CMake-edcb545a24ed2df83813a89a20bb2beefe0531c1.tar.gz CMake-edcb545a24ed2df83813a89a20bb2beefe0531c1.tar.bz2 |
install: add test for new NAMELINK_COMPONENT parameter
Diffstat (limited to 'Tests/RunCMake/install/TARGETS-NAMELINK_COMPONENT-lib-check.cmake')
-rw-r--r-- | Tests/RunCMake/install/TARGETS-NAMELINK_COMPONENT-lib-check.cmake | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/Tests/RunCMake/install/TARGETS-NAMELINK_COMPONENT-lib-check.cmake b/Tests/RunCMake/install/TARGETS-NAMELINK_COMPONENT-lib-check.cmake new file mode 100644 index 0000000..3f6be68 --- /dev/null +++ b/Tests/RunCMake/install/TARGETS-NAMELINK_COMPONENT-lib-check.cmake @@ -0,0 +1,50 @@ +if(WIN32) + set(_check_files + [[lib]] + [[lib/(lib)?namelink-none\.dll]] + [[lib/(lib)?namelink-same\.dll]] + [[lib/(lib)?namelink-sep\.dll]] + [[lib/(lib)?namelink-skip\.dll]] + ) +elseif(CYGWIN) + set(_check_files + [[lib]] + [[lib/cygnamelink-none\.dll]] + [[lib/cygnamelink-same-1\.dll]] + [[lib/cygnamelink-sep-1\.dll]] + [[lib/cygnamelink-skip-1\.dll]] + ) +elseif(APPLE) + set(_check_files + [[lib]] + [[lib/libnamelink-none\.dylib]] + [[lib/libnamelink-same\.1\.0\.dylib]] + [[lib/libnamelink-same\.1\.dylib]] + [[lib/libnamelink-same\.dylib]] + [[lib/libnamelink-sep\.1\.0\.dylib]] + [[lib/libnamelink-sep\.1\.dylib]] + [[lib/libnamelink-skip\.1\.0\.dylib]] + [[lib/libnamelink-skip\.1\.dylib]] + ) +elseif(NO_NAMELINK) + set(_check_files + [[lib]] + [[lib/libnamelink-none\.so]] + [[lib/libnamelink-same\.so]] + [[lib/libnamelink-sep\.so]] + [[lib/libnamelink-skip\.so]] + ) +else() + set(_check_files + [[lib]] + [[lib/libnamelink-none\.so]] + [[lib/libnamelink-same\.so]] + [[lib/libnamelink-same\.so\.1]] + [[lib/libnamelink-same\.so\.1\.0]] + [[lib/libnamelink-sep\.so\.1]] + [[lib/libnamelink-sep\.so\.1\.0]] + [[lib/libnamelink-skip\.so\.1]] + [[lib/libnamelink-skip\.so\.1\.0]] + ) +endif() +check_installed("^${_check_files}$") |