PROJECT(0x40HUES)
CMAKE_MINIMUM_REQUIRED(VERSION 3.0)

# Release vs debug.
set(CMAKE_CXX_FLAGS_Debug -ggdb -O0)
set(CMAKE_CXX_FLAGS_Release -O2)
add_compile_options(-Wall)

# Build statically because it's cool.
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++")

# For platform-specific library checks.
INCLUDE(ConfigureChecks.cmake)

# Source directories go here.
ADD_SUBDIRECTORY(pugixml)
ADD_SUBDIRECTORY(src)

PROJECT(0x40HUES)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

# Release vs debug.
# Default build type to debug if not set
IF(NOT CMAKE_BUILD_TYPE)
    SET(CMAKE_BUILD_TYPE Debug CACHE STRING
        "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
        FORCE)
ENDIF(NOT CMAKE_BUILD_TYPE)
set(CMAKE_CXX_FLAGS_Debug -ggdb -O0)
set(CMAKE_CXX_FLAGS_Release -O2)
add_compile_options(-Wall)

# Build statically because it's cool.
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++")

# For platform-specific library checks.
INCLUDE(ConfigureChecks.cmake)

# Source directories go here.
ADD_SUBDIRECTORY(pugixml)
ADD_SUBDIRECTORY(src)

Fix build on Linux...I haven't even written anything yet. :(
Fix build on Linux...I haven't even written anything yet. :(
