From 27cba6c6244bd21bb286d918aff6e65856257aba Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Fri, 8 Jul 2011 14:39:23 +0200 Subject: [PATCH] created config.hpp file for appps/openmw --- .gitignore | 3 ++- apps/openmw/CMakeLists.txt | 7 ++++++- apps/openmw/config.hpp.cmake | 9 +++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 apps/openmw/config.hpp.cmake diff --git a/.gitignore b/.gitignore index 774478e2b..a58044556 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ build *~ Doxygen -prebuilt \ No newline at end of file +prebuilt +apps/openmw/config.hpp diff --git a/apps/openmw/CMakeLists.txt b/apps/openmw/CMakeLists.txt index 492c3869b..f8b4d7a59 100644 --- a/apps/openmw/CMakeLists.txt +++ b/apps/openmw/CMakeLists.txt @@ -1,5 +1,9 @@ project(OpenMW) +# config file + +configure_file ("${OpenMW_SOURCE_DIR}/config.hpp.cmake" "${OpenMW_SOURCE_DIR}/config.hpp") + # local files set(GAME @@ -7,7 +11,8 @@ set(GAME engine.cpp ) set(GAME_HEADER - engine.hpp) + engine.hpp + config.hpp) source_group(game FILES ${GAME} ${GAME_HEADER}) set(GAMEREND diff --git a/apps/openmw/config.hpp.cmake b/apps/openmw/config.hpp.cmake new file mode 100644 index 000000000..f74734d9e --- /dev/null +++ b/apps/openmw/config.hpp.cmake @@ -0,0 +1,9 @@ +#ifndef CONFIG_H +#define CONFIG_H + +#define OPENMW_VERSION_MAJOR @OPENMW_VERSION_MAJOR@ +#define OPENMW_VERSION_MINOR @OPENMW_VERSION_MINOR@ +#define OPENMW_VERSION_PATCH @OPENMW_VERSION_PATCH@ +#define OPENMW_VERSION @OPENMW_VERSION@ + +#endif