Tidied the CMakeLists, moved stuff to more logical places and added comments. Also tested that ALTER_CONF=ON still works

This commit is contained in:
jpekkila
2019-07-26 15:12:55 +03:00
parent 5044228967
commit c9fafe41e5
5 changed files with 24 additions and 14 deletions

View File

@@ -2,6 +2,9 @@
## CMakeLists.txt for Astaroth Standalone ##
##############################################
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
## Files
file (GLOB SOURCES "*.cc" "model/*.cc")
@@ -17,7 +20,6 @@ if (BUILD_RT_VISUALIZATION)
link_directories(${SDL2_LIBRARY_DIR})
endif ()
## Compilation flags
add_compile_options(-march=native -pipe ${OpenMP_CXX_FLAGS})
add_compile_options(-Wall -Wextra -Werror -Wdouble-promotion -Wfloat-conversion)# -Wshadow)