Added XCode related config

This commit is contained in:
Vraiment 2017-07-11 20:28:31 -07:00
parent ab89c9d8fc
commit c5455cc97b
3 changed files with 8 additions and 1 deletions

3
.gitignore vendored
View File

@ -17,6 +17,9 @@ sdl2pp.pc
*.sln *.sln
Debug/ Debug/
Win32/ Win32/
CMakeScripts/
*.build
*.xcodeproj
# Binaries # Binaries
*.o *.o

View File

@ -93,6 +93,10 @@ ELSE(MSVC)
#APPEND_CXX_FLAG_IF_SUPPORTED(-Wno-c++98-compat SDL2PP_WARNINGS) #APPEND_CXX_FLAG_IF_SUPPORTED(-Wno-c++98-compat SDL2PP_WARNINGS)
#APPEND_CXX_FLAG_IF_SUPPORTED(-Wno-padded SDL2PP_WARNINGS) #APPEND_CXX_FLAG_IF_SUPPORTED(-Wno-padded SDL2PP_WARNINGS)
ENDIF(MSVC) ENDIF(MSVC)
IF (CMAKE_GENERATOR STREQUAL "Xcode")
# To disable colored output on the XCode test console
ADD_DEFINITIONS(-DSDL2PP_XCODE_GENERATED)
ENDIF (CMAKE_GENERATOR STREQUAL "Xcode")
LIST(REMOVE_DUPLICATES SDL2_ALL_INCLUDE_DIRS) LIST(REMOVE_DUPLICATES SDL2_ALL_INCLUDE_DIRS)

View File

@ -36,7 +36,7 @@
#include <sstream> #include <sstream>
#include <functional> #include <functional>
#ifdef _WIN32 #if (defined _WIN32) || (defined SDL2PP_XCODE_GENERATED)
# define TESTING_NO_COLOR # define TESTING_NO_COLOR
#endif #endif