2018-07-28 14:25:32 +08:00
|
|
|
include(QtUtils)
|
|
|
|
msvc_registry_search()
|
|
|
|
find_qt5(Core Widgets)
|
|
|
|
|
2018-09-30 04:05:08 +08:00
|
|
|
set(RESOURCE_FILES Textractor.rc Textractor.ico)
|
2018-08-26 05:09:36 +08:00
|
|
|
add_compile_options(/GL)
|
2018-07-28 14:25:32 +08:00
|
|
|
# Populate a CMake variable with the sources
|
|
|
|
set(gui_SRCS
|
|
|
|
main.cpp
|
|
|
|
mainwindow.cpp
|
|
|
|
misc.cpp
|
2018-12-23 02:05:01 +08:00
|
|
|
exception.cpp
|
2018-11-02 02:07:42 +08:00
|
|
|
extenwindow.cpp
|
2018-11-23 04:54:11 +08:00
|
|
|
host/host.cpp
|
|
|
|
host/textthread.cpp
|
2018-11-23 04:53:32 +08:00
|
|
|
host/util.cpp
|
2018-08-03 05:18:08 +08:00
|
|
|
${RESOURCE_FILES}
|
2018-07-28 14:25:32 +08:00
|
|
|
)
|
|
|
|
add_executable(${PROJECT_NAME} WIN32 ${gui_SRCS})
|
2018-12-13 20:54:25 +08:00
|
|
|
target_link_libraries(${PROJECT_NAME} Qt5::Widgets winhttp)
|
2018-07-28 14:25:32 +08:00
|
|
|
|
|
|
|
install_qt5_libs(${PROJECT_NAME})
|