|
|
|
|
@ -19,6 +19,13 @@
|
|
|
|
|
# chosen based on actual build configuration of the project (i.e. Debug build |
|
|
|
|
# is linked to debug libraries, Release build to release libraries). |
|
|
|
|
# |
|
|
|
|
# On multi-configuration build systems (such as Visual Studio or XCode) the |
|
|
|
|
# preprocessor variable CORRADE_IS_DEBUG_BUILD is defined if given build |
|
|
|
|
# configuration is Debug (not Corrade itself, but build configuration of the |
|
|
|
|
# project using it). Useful e.g. for selecting proper plugin directory. On |
|
|
|
|
# single-configuration build systems (such as Makefiles) this information is |
|
|
|
|
# not needed and thus the variable is not defined in any case. |
|
|
|
|
# |
|
|
|
|
# Corrade configures the compiler to use C++11 standard. Additionally you can |
|
|
|
|
# use CORRADE_CXX_FLAGS to enable additional pedantic set of warnings and |
|
|
|
|
# enable hidden visibility by default. |
|
|
|
|
@ -31,6 +38,7 @@
|
|
|
|
|
# CORRADE_BUILD_STATIC - Defined if compiled as static libraries |
|
|
|
|
# CORRADE_TARGET_UNIX - Defined if compiled for some Unix flavor |
|
|
|
|
# (Linux, BSD, OS X) |
|
|
|
|
# CORRADE_TARGET_APPLE - Defined if compiled for OS X |
|
|
|
|
# CORRADE_TARGET_WINDOWS - Defined if compiled for Windows |
|
|
|
|
# CORRADE_TARGET_NACL - Defined if compiled for Google Chrome |
|
|
|
|
# Native Client |
|
|
|
|
@ -206,6 +214,10 @@ string(FIND "${_corradeConfigure}" "#define CORRADE_TARGET_UNIX" _TARGET_UNIX)
|
|
|
|
|
if(NOT _TARGET_UNIX EQUAL -1) |
|
|
|
|
set(CORRADE_TARGET_UNIX 1) |
|
|
|
|
endif() |
|
|
|
|
string(FIND "${_corradeConfigure}" "#define CORRADE_TARGET_APPLE" _TARGET_APPLE) |
|
|
|
|
if(NOT _TARGET_APPLE EQUAL -1) |
|
|
|
|
set(CORRADE_TARGET_APPLE 1) |
|
|
|
|
endif() |
|
|
|
|
string(FIND "${_corradeConfigure}" "#define CORRADE_TARGET_WINDOWS" _TARGET_WINDOWS) |
|
|
|
|
if(NOT _TARGET_WINDOWS EQUAL -1) |
|
|
|
|
set(CORRADE_TARGET_WINDOWS 1) |
|
|
|
|
|