summaryrefslogtreecommitdiffstats
path: root/Tests/LibName
diff options
context:
space:
mode:
authorPeter Kuemmel <syntheticpp@gmx.net>2012-07-03 13:01:06 (GMT)
committerDavid Cole <david.cole@kitware.com>2012-07-09 18:15:08 (GMT)
commit9b311fbee66d98b5396f6327305d5163ab78285c (patch)
tree62c5364bb12d8fbbc16d17f8f2f00099d62a2575 /Tests/LibName
parente3b1be24a808fdb3dc0482a33fe423c0eb945a7b (diff)
downloadCMake-9b311fbee66d98b5396f6327305d5163ab78285c.zip
CMake-9b311fbee66d98b5396f6327305d5163ab78285c.tar.gz
CMake-9b311fbee66d98b5396f6327305d5163ab78285c.tar.bz2
Ninja: add soname test case
Diffstat (limited to 'Tests/LibName')
-rw-r--r--Tests/LibName/CMakeLists.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/Tests/LibName/CMakeLists.txt b/Tests/LibName/CMakeLists.txt
index 3dca0b0..07499a1 100644
--- a/Tests/LibName/CMakeLists.txt
+++ b/Tests/LibName/CMakeLists.txt
@@ -3,11 +3,24 @@ project(LibName)
# LIBRARY_OUTPUT_PATH and EXECUTABLE_OUTPUT_PATH work
set(LIBRARY_OUTPUT_PATH lib)
set(EXECUTABLE_OUTPUT_PATH lib)
+
add_library(bar SHARED bar.c)
+
add_library(foo SHARED foo.c)
target_link_libraries(foo bar)
+
add_executable(foobar foobar.c)
target_link_libraries(foobar foo)
IF(UNIX)
target_link_libraries(foobar -L/usr/local/lib)
ENDIF(UNIX)
+
+
+# check with lib version
+
+add_library(verFoo SHARED foo.c)
+target_link_libraries(verFoo bar)
+set_target_properties(verFoo PROPERTIES VERSION 3.1.4 SOVERSION 3)
+
+add_executable(verFoobar foobar.c)
+target_link_libraries(verFoobar verFoo)