[Uml-devel] KDE/kdesdk/umbrello/umbrello
Laurent Montel
montel at kde.org
Thu Jun 8 08:47:30 UTC 2006
SVN commit 549324 by mlaurent:
Generate version.h file
M +10 -0 CMakeLists.txt
--- trunk/KDE/kdesdk/umbrello/umbrello/CMakeLists.txt #549323:549324
@@ -1,4 +1,14 @@
+macro(CREATE_VERSION _in_FILE _out_FILE)
+ FILE(READ ${_in_FILE} _contents)
+ FILE(WRITE ${_out_FILE} "#undef UMBRELLO_VERSION\n")
+ STRING(REGEX REPLACE "\n" "" _contents "${_contents}" )
+ FILE(APPEND ${_out_FILE} "#define UMBRELLO_VERSION \"${_contents}\"")
+endmacro(CREATE_VERSION)
+
+macro_additional_clean_files( ${CMAKE_CURRENT_BINARY_DIR}/version.h )
+create_version(${CMAKE_SOURCE_DIR}/umbrello/VERSION version.h)
+
add_subdirectory( classparser )
add_subdirectory( dialogs )
add_subdirectory( clipboard )
More information about the umbrello-devel
mailing list