2018-07-28 09:25:32 +03:00
|
|
|
include(QtUtils)
|
|
|
|
msvc_registry_search()
|
|
|
|
find_qt5(Core Widgets)
|
2019-01-10 21:47:16 -05:00
|
|
|
set(AUTOMOC OFF)
|
2018-07-28 09:25:32 +03:00
|
|
|
|
2018-09-29 16:05:08 -04:00
|
|
|
set(RESOURCE_FILES Textractor.rc Textractor.ico)
|
2019-01-31 11:41:43 -05:00
|
|
|
set(gui_src
|
2018-07-28 09:25:32 +03:00
|
|
|
main.cpp
|
|
|
|
mainwindow.cpp
|
2018-11-01 14:07:42 -04:00
|
|
|
extenwindow.cpp
|
2019-01-31 11:41:43 -05:00
|
|
|
host/exception.cpp
|
2018-11-22 15:54:11 -05:00
|
|
|
host/host.cpp
|
|
|
|
host/textthread.cpp
|
2018-11-22 15:53:32 -05:00
|
|
|
host/util.cpp
|
2018-08-02 17:18:08 -04:00
|
|
|
${RESOURCE_FILES}
|
2018-07-28 09:25:32 +03:00
|
|
|
)
|
2019-01-31 11:41:43 -05:00
|
|
|
add_executable(${PROJECT_NAME} WIN32 ${gui_src})
|
2018-12-13 07:54:25 -05:00
|
|
|
target_link_libraries(${PROJECT_NAME} Qt5::Widgets winhttp)
|
2018-07-28 09:25:32 +03:00
|
|
|
|
2019-02-04 15:18:47 -05:00
|
|
|
#install_qt5_libs(${PROJECT_NAME}) # can be commented out for consecutive builds
|