[cmake-commits] king committed CMakeLists.txt 1.7 1.8

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Feb 1 09:57:49 EST 2008


Update of /cvsroot/CMake/CMake/Tests/ExportImport/Export
In directory public:/mounts/ram/cvs-serv28972/Tests/ExportImport/Export

Modified Files:
	CMakeLists.txt 
Log Message:
ENH: Update ExportImport test to enforce dependent library paths

  - Build without rpaths
  - Place implementation libs in separate directories


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/ExportImport/Export/CMakeLists.txt,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- CMakeLists.txt	31 Jan 2008 20:45:31 -0000	1.7
+++ CMakeLists.txt	1 Feb 2008 14:57:47 -0000	1.8
@@ -10,6 +10,7 @@
 target_link_libraries(testExe1 testExe1lib)
 
 add_library(testExe2libImp SHARED testExe2libImp.c)
+set_property(TARGET testExe2libImp PROPERTY LIBRARY_OUTPUT_DIRECTORY impl)
 add_library(testExe2lib SHARED testExe2lib.c)
 target_link_libraries(testExe2lib testExe2libImp)
 set_property(TARGET testExe2lib PROPERTY LINK_INTERFACE_LIBRARIES "")
@@ -22,6 +23,7 @@
 target_link_libraries(testLib2 testLib1)
 
 add_library(testLib3Imp SHARED testLib3Imp.c)
+set_property(TARGET testLib3Imp PROPERTY LIBRARY_OUTPUT_DIRECTORY impl)
 add_library(testLib3 SHARED testLib3.c)
 target_link_libraries(testLib3 testLib3Imp)
 set_property(TARGET testLib3 PROPERTY LINK_INTERFACE_LIBRARIES "")
@@ -36,6 +38,13 @@
 install(
   TARGETS
   testExe2libImp testLib3Imp
+  EXPORT exp
+  RUNTIME DESTINATION bin
+  LIBRARY DESTINATION lib/impl
+  ARCHIVE DESTINATION lib/impl
+  )
+install(
+  TARGETS
   testExe1 testLib1 testLib2 testExe2 testLib3 testLib4 testExe3
   testExe2lib
   EXPORT exp



More information about the Cmake-commits mailing list