]> Creatis software - clitk.git/commitdiff
passing OS name in globals.h
authorMaxime <mpech@russule.clb.loc>
Fri, 6 May 2011 12:54:21 +0000 (14:54 +0200)
committerMaxime <mpech@russule.clb.loc>
Fri, 6 May 2011 12:54:21 +0000 (14:54 +0200)
common/CMakeLists.txt
common/globals.h.in [new file with mode: 0644]

index 589d108cbeb90013f9d73c26eb971b95027c33d1..ebe4dff285808e01b16ec47eef0df5c969723bd3 100644 (file)
@@ -56,3 +56,9 @@ TARGET_LINK_LIBRARIES(clitkDicomRTStruct vtkHybrid)
 
 #ADD_LIBRARY(clitkCommonShared SHARED ${clitkCommon_SRC})
 #SET_TARGET_PROPERTIES(clitkCommonShared PROPERTIES COMPILE_FLAGS -fPIC)
+
+#passing environnment variable
+configure_file (
+ globals.h.in
+ globals.h
+)
diff --git a/common/globals.h.in b/common/globals.h.in
new file mode 100644 (file)
index 0000000..14395c0
--- /dev/null
@@ -0,0 +1,2 @@
+#define OS_NAME "@CMAKE_SYSTEM@"
+                              
\ No newline at end of file