try to make code performant, lets see if this will work.
This commit is contained in:
@@ -96,6 +96,17 @@ set(RESOURCES
|
||||
# target
|
||||
add_executable(SubWave ${SOURCES} ${HEADERS} ${RESOURCES})
|
||||
|
||||
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
||||
message(STATUS "Setting build type to 'RelWithDebInfo' as none was specified.")
|
||||
set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "Choose the type of build." FORCE)
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
target_compile_options(SubWave PRIVATE /O2 /fp:fast)
|
||||
else()
|
||||
target_compile_options(SubWave PRIVATE -O3 -ffast-math -march=native)
|
||||
endif()
|
||||
|
||||
# headers
|
||||
target_include_directories(SubWave PRIVATE
|
||||
src
|
||||
|
||||
Reference in New Issue
Block a user