Enable whole program optimization for naveditor

Libs use them under the same PCH.
This commit is contained in:
Kawe Mazidjatari 2023-05-13 12:11:02 +02:00
parent fdfc0a748b
commit f22504f095

View File

@ -86,9 +86,14 @@ add_sources( SOURCE_GROUP "Utils/Include"
) )
end_sources() end_sources()
whole_program_optimization()
target_compile_definitions( ${PROJECT_NAME} PRIVATE WIN32 ) target_compile_definitions( ${PROJECT_NAME} PRIVATE
target_precompile_headers( ${PROJECT_NAME} PRIVATE ${ENGINE_SOURCE_DIR}/thirdparty/recast/Pch.h ) "WIN32"
)
target_precompile_headers( ${PROJECT_NAME} PRIVATE
"${ENGINE_SOURCE_DIR}/thirdparty/recast/Pch.h"
)
target_link_libraries( ${PROJECT_NAME} PRIVATE target_link_libraries( ${PROJECT_NAME} PRIVATE
"navdebugutils" "navdebugutils"
"libsdl2" "libsdl2"