[cmake-commits] king committed CMakeLists.txt 1.1 1.2 testLib4.c NONE 1.1

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Jan 28 13:06:19 EST 2008


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

Modified Files:
	CMakeLists.txt 
Added Files:
	testLib4.c 
Log Message:
ENH: Added framework to ExportImport test.


--- NEW FILE: testLib4.c ---
#if defined(_WIN32) || defined(__CYGWIN__)
# define testLib4_EXPORT __declspec(dllexport)
#else
# define testLib4_EXPORT
#endif

testLib4_EXPORT int testLib4(void) { return 0; }

Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/ExportImport/Export/CMakeLists.txt,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- CMakeLists.txt	28 Jan 2008 13:40:20 -0000	1.1
+++ CMakeLists.txt	28 Jan 2008 18:06:17 -0000	1.2
@@ -16,18 +16,22 @@
 
 add_library(testLib3 SHARED testLib3.c)
 
+add_library(testLib4 SHARED testLib4.c)
+set_property(TARGET testLib4 PROPERTY FRAMEWORK 1)
+
 # Install and export from install tree.
 install(
-  TARGETS testExe1 testLib1 testLib2 testExe2 testLib3
+  TARGETS testExe1 testLib1 testLib2 testExe2 testLib3 testLib4
   EXPORT exp
   RUNTIME DESTINATION bin
   LIBRARY DESTINATION lib
   ARCHIVE DESTINATION lib
+  FRAMEWORK DESTINATION Frameworks
   )
 install(EXPORT exp NAMESPACE exp_ DESTINATION lib/exp)
 
 # Export from build tree.
-export(TARGETS testExe1 testLib1 testLib2 testExe2 testLib3
+export(TARGETS testExe1 testLib1 testLib2 testExe2 testLib3 testLib4
   NAMESPACE bld_
   FILE ExportBuildTree.cmake
   )



More information about the Cmake-commits mailing list