include(compiler/features) include(helpers) include(git/commit) # If ccache is present, enable it for better compiletimes find_program(CCACHE_FOUND ccache) if (CCACHE_FOUND AND FGL_USE_CCACHE) message("== CCACHE found, Using it") set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache) endif () if ((${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU") OR (${CMAKE_CXX_PLATFORM_ID} STREQUAL "MinGW")) include(compiler/gcc) elseif (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang") include(compiler/clang) elseif (${CMAKE_CXX_COMPILER_ID} STREQUAL "MSVC") message() include(compiler/msvc) endif () if ((WIN32)) message(DEBUG "Compiling for Windows") include(os/win32) elseif (APPLE) message(DEBUG "Compiling for Apple") include(os/apple) elseif (UNIX) message(DEBUG "Compiling for Unix") include(os/linux) else () message(DEBUG "Unknown Platform") endif ()