diff --git a/CMakeLists.txt b/CMakeLists.txt index 0fe7fb6..bc7e476 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,5 +10,13 @@ find_package(OpenMP) option(USE_OPENMP "Compile with OpenMP support" ON) +set(CMAKE_CXX_FLAGS_GENERICOPT "-O3 -march=native" CACHE STRING + "Flags used by the C++ compiler during opt builds." + FORCE) + +set(CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING + "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel GenericOpt." + FORCE) + add_subdirectory(app) add_subdirectory(src)