use LTO to improve load time

This commit is contained in:
Akash Mozumdar 2019-02-25 00:08:20 -05:00
parent 7b82aa62aa
commit 9900c09483

View File

@ -13,6 +13,8 @@ add_executable(${PROJECT_NAME} WIN32
Textractor.rc Textractor.rc
Textractor.ico Textractor.ico
) )
target_link_libraries(${PROJECT_NAME} Qt5::Widgets shell32 winhttp) target_compile_options(${PROJECT_NAME} PRIVATE $<$<CONFIG:RelWithDebInfo>:/GL>)
target_link_libraries(${PROJECT_NAME} Qt5::Widgets shell32 winhttp $<$<CONFIG:RelWithDebInfo>:-LTCG>)
install_qt5_libs(${PROJECT_NAME}) # can be commented out for consecutive builds install_qt5_libs(${PROJECT_NAME}) # can be commented out for consecutive builds