From 6fa2cf3d8bd3e42e5103da3f04f12fc90c671bbd Mon Sep 17 00:00:00 2001 From: Maxime Date: Fri, 6 May 2011 14:54:21 +0200 Subject: [PATCH] passing OS name in globals.h --- common/CMakeLists.txt | 6 ++++++ common/globals.h.in | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 common/globals.h.in 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 -- 2.47.1