Add Config.hh to record build-time settings

This commit is contained in:
Dmitry Marakasov 2014-09-05 05:00:06 +04:00
parent 955d6f7bc1
commit 9a0a6b9da6
3 changed files with 37 additions and 0 deletions

View File

@ -31,6 +31,14 @@ ENDIF(MSVC)
INCLUDE_DIRECTORIES(BEFORE ${PROJECT_SOURCE_DIR}) INCLUDE_DIRECTORIES(BEFORE ${PROJECT_SOURCE_DIR})
INCLUDE_DIRECTORIES(${SDL2_ALL_INCLUDE_DIRS}) INCLUDE_DIRECTORIES(${SDL2_ALL_INCLUDE_DIRS})
# config.h
CONFIGURE_FILE(
SDL2pp/Config.hh.in
SDL2pp/Config.hh
)
INCLUDE_DIRECTORIES(BEFORE ${PROJECT_BINARY_DIR})
# sources # sources
SET(LIBRARY_SOURCES SET(LIBRARY_SOURCES
SDL2pp/Exception.cc SDL2pp/Exception.cc

27
SDL2pp/Config.hh.in Normal file
View File

@ -0,0 +1,27 @@
/*
libSDL2pp - C++ wrapper for libSDL2
Copyright (C) 2014 Dmitry Marakasov <amdmi3@amdmi3.ru>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#ifndef SDL2PP_CONFIG_HH
#define SDL2PP_CONFIG_HH
#cmakedefine SDL2PP_WITH_IMAGE
#endif

View File

@ -23,6 +23,8 @@
#define SDL2PP_SDL2PP_HH #define SDL2PP_SDL2PP_HH
#include <SDL2pp/Exception.hh> #include <SDL2pp/Exception.hh>
#include <SDL2pp/Config.hh>
#include <SDL2pp/SDL.hh> #include <SDL2pp/SDL.hh>
#include <SDL2pp/Window.hh> #include <SDL2pp/Window.hh>
#include <SDL2pp/Renderer.hh> #include <SDL2pp/Renderer.hh>