From 9900c09483ac68062ba2d40f89ac589c10c9f042 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Mon, 25 Feb 2019 00:08:20 -0500 Subject: [PATCH] use LTO to improve load time --- GUI/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GUI/CMakeLists.txt b/GUI/CMakeLists.txt index ea1b843..f1fd998 100644 --- a/GUI/CMakeLists.txt +++ b/GUI/CMakeLists.txt @@ -13,6 +13,8 @@ add_executable(${PROJECT_NAME} WIN32 Textractor.rc Textractor.ico ) -target_link_libraries(${PROJECT_NAME} Qt5::Widgets shell32 winhttp) +target_compile_options(${PROJECT_NAME} PRIVATE $<$:/GL>) +target_link_libraries(${PROJECT_NAME} Qt5::Widgets shell32 winhttp $<$:-LTCG>) + install_qt5_libs(${PROJECT_NAME}) # can be commented out for consecutive builds