temp cmakelists.txt stuffs
This commit is contained in:
parent
93dc0fa053
commit
2df9f318a5
1 changed files with 15 additions and 0 deletions
|
|
@ -15,6 +15,12 @@ if(NOT CMAKE_BUILD_TYPE)
|
|||
set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Default to Debug" FORCE)
|
||||
endif()
|
||||
|
||||
add_compile_options(
|
||||
"-Wall" "-Wextra" "-Werror" "-Wpedantic" "-fexceptions"
|
||||
"$<$<CONFIG:DEBUG>:-O0;-g3;-ggdb;-DARC_DEBUG;>"
|
||||
"$<$<CONFIG:RELEASE>:-02;-g;>"
|
||||
)
|
||||
|
||||
# ~ OPTIONS ~ #
|
||||
option(ARCHEUS_STD_DEFAULT_CONFIG "Build with default config keys" ON)
|
||||
|
||||
|
|
@ -73,6 +79,15 @@ set(ARCHEUS_STD_SOURCES
|
|||
src/engine/state.c
|
||||
)
|
||||
|
||||
#TODO: add this
|
||||
#add_executable(tests
|
||||
# tests/test.c
|
||||
#
|
||||
# tests/std/vector.c
|
||||
#
|
||||
# ${ARCHEUS_STD_SOURCES}
|
||||
#)
|
||||
|
||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
string(APPEND ARCHEUS_STD_FLAGS "-Wall -Werror -g -ggdb -DARC_DEBUG ")
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue