21 lines
470 B
CMake
21 lines
470 B
CMake
include(QtUtils)
|
|
msvc_registry_search()
|
|
find_qt5(Core Widgets)
|
|
set(AUTOMOC OFF)
|
|
|
|
set(RESOURCE_FILES Textractor.rc Textractor.ico)
|
|
set(gui_src
|
|
main.cpp
|
|
mainwindow.cpp
|
|
extenwindow.cpp
|
|
host/exception.cpp
|
|
host/host.cpp
|
|
host/textthread.cpp
|
|
host/util.cpp
|
|
${RESOURCE_FILES}
|
|
)
|
|
add_executable(${PROJECT_NAME} WIN32 ${gui_src})
|
|
target_link_libraries(${PROJECT_NAME} Qt5::Widgets winhttp)
|
|
|
|
install_qt5_libs(${PROJECT_NAME}) # can be commented out for consecutive builds
|