From: Maxime Date: Fri, 6 May 2011 12:54:21 +0000 (+0200) Subject: passing OS name in globals.h X-Git-Tag: v1.2.1~40 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=6fa2cf3d8bd3e42e5103da3f04f12fc90c671bbd;p=clitk.git passing OS name in globals.h --- diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index 589d108..ebe4dff 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -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 index 0000000..14395c0 --- /dev/null +++ b/common/globals.h.in @@ -0,0 +1,2 @@ +#define OS_NAME "@CMAKE_SYSTEM@" + \ No newline at end of file