2018-07-28 14:25:32 +08:00
|
|
|
include(QtUtils)
|
|
|
|
msvc_registry_search()
|
|
|
|
find_qt5(Core Widgets)
|
|
|
|
|
2019-06-07 14:19:51 +08:00
|
|
|
add_executable(Textractor WIN32
|
2018-07-28 14:25:32 +08:00
|
|
|
main.cpp
|
|
|
|
mainwindow.cpp
|
2020-09-10 04:54:15 +08:00
|
|
|
extenwindow.cpp
|
2019-02-01 00:41:43 +08:00
|
|
|
host/exception.cpp
|
2018-11-23 04:54:11 +08:00
|
|
|
host/host.cpp
|
|
|
|
host/textthread.cpp
|
2020-02-28 15:34:34 +08:00
|
|
|
host/hookcode.cpp
|
2019-02-19 12:12:12 +08:00
|
|
|
Textractor.rc
|
|
|
|
Textractor.ico
|
2018-07-28 14:25:32 +08:00
|
|
|
)
|
2020-04-19 09:04:07 +08:00
|
|
|
target_precompile_headers(Textractor REUSE_FROM pch)
|
2019-05-25 01:30:12 +08:00
|
|
|
target_link_libraries(${PROJECT_NAME} Qt5::Widgets shell32 winhttp)
|
2019-02-25 13:08:20 +08:00
|
|
|
|
2019-05-25 01:30:12 +08:00
|
|
|
if (NOT EXISTS ${CMAKE_FINAL_OUTPUT_DIRECTORY}/Qt5Core.dll)
|
|
|
|
if (NOT EXISTS ${CMAKE_FINAL_OUTPUT_DIRECTORY}/Qt5Cored.dll)
|
|
|
|
install_qt5_libs(${PROJECT_NAME})
|
|
|
|
endif()
|
|
|
|
endif()
|