nostalgia/CMakeLists.txt

31 lines
516 B
CMake
Raw Normal View History

2016-03-26 15:49:05 -05:00
cmake_minimum_required(VERSION 2.8.8)
project(wombat)
set(WOMBAT_BUILD_TYPE "Native" CACHE STRING "The type of build to produce(Native/GBA)")
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules)
include(address_sanitizer)
2016-12-23 17:29:19 -06:00
if (WOMBAT_BUILD_TYPE STREQUAL "GBA")
include(GBA)
endif()
2016-03-26 15:49:05 -05:00
add_definitions(
2016-12-23 17:29:19 -06:00
-std=c++11
2016-03-26 15:49:05 -05:00
-Wall
-Wsign-compare
-nostdlib
-fno-exceptions
-fno-rtti
#-g
#-fcolor-diagnostics
-Werror
#--analyze
#-Os # GCC size optimization flag
)
enable_testing()
add_subdirectory(src)