mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-04 03:15:59 -04:00
Add Config.hh to record build-time settings
This commit is contained in:
parent
955d6f7bc1
commit
9a0a6b9da6
@ -31,6 +31,14 @@ ENDIF(MSVC)
|
||||
INCLUDE_DIRECTORIES(BEFORE ${PROJECT_SOURCE_DIR})
|
||||
INCLUDE_DIRECTORIES(${SDL2_ALL_INCLUDE_DIRS})
|
||||
|
||||
# config.h
|
||||
CONFIGURE_FILE(
|
||||
SDL2pp/Config.hh.in
|
||||
SDL2pp/Config.hh
|
||||
)
|
||||
|
||||
INCLUDE_DIRECTORIES(BEFORE ${PROJECT_BINARY_DIR})
|
||||
|
||||
# sources
|
||||
SET(LIBRARY_SOURCES
|
||||
SDL2pp/Exception.cc
|
||||
|
27
SDL2pp/Config.hh.in
Normal file
27
SDL2pp/Config.hh.in
Normal 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
|
@ -23,6 +23,8 @@
|
||||
#define SDL2PP_SDL2PP_HH
|
||||
|
||||
#include <SDL2pp/Exception.hh>
|
||||
#include <SDL2pp/Config.hh>
|
||||
|
||||
#include <SDL2pp/SDL.hh>
|
||||
#include <SDL2pp/Window.hh>
|
||||
#include <SDL2pp/Renderer.hh>
|
||||
|
Loading…
x
Reference in New Issue
Block a user