diff options
author | David Cole <david.cole@kitware.com> | 2012-07-09 18:23:57 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2012-07-09 18:23:57 (GMT) |
commit | 2e4327218749f59f84db59ea3e464fbd00e0f159 (patch) | |
tree | d868f7ff3e5edc0e0f34b47fd05236d8a0fb4230 /Tests | |
parent | ada7fe248a0b0c50a3487150cdfc2add6e8f8b22 (diff) | |
parent | 6b31d395513fe8ea7b17489b7235c16c1ebad7e1 (diff) | |
download | CMake-2e4327218749f59f84db59ea3e464fbd00e0f159.zip CMake-2e4327218749f59f84db59ea3e464fbd00e0f159.tar.gz CMake-2e4327218749f59f84db59ea3e464fbd00e0f159.tar.bz2 |
Merge topic 'ninja-fixes'
6b31d39 Ninja: don't shadow 'outputs' variable
9b311fb Ninja: add soname test case
e3b1be2 Ninja: Clean all symlink created for libraries.
990f77e Ninja: remove int/size_t warning
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/LibName/CMakeLists.txt | 13 |
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) |