28 lines
468 B
CMake
28 lines
468 B
CMake
|
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)
|
||
|
include(GBA)
|
||
|
|
||
|
add_definitions(
|
||
|
-std=c++14
|
||
|
-Wall
|
||
|
-Wsign-compare
|
||
|
-nostdlib
|
||
|
-fno-exceptions
|
||
|
-fno-rtti
|
||
|
#-g
|
||
|
#-fcolor-diagnostics
|
||
|
-Werror
|
||
|
#--analyze
|
||
|
#-Os # GCC size optimization flag
|
||
|
)
|
||
|
|
||
|
enable_testing()
|
||
|
|
||
|
add_subdirectory(src)
|