2018-07-28 09:25:32 +03:00
|
|
|
include(QtUtils)
|
|
|
|
msvc_registry_search()
|
|
|
|
find_qt5(Core Widgets)
|
|
|
|
|
2018-09-29 16:05:08 -04:00
|
|
|
set(RESOURCE_FILES Textractor.rc Textractor.ico)
|
2018-08-25 17:09:36 -04:00
|
|
|
add_compile_options(/GL)
|
2018-07-28 09:25:32 +03:00
|
|
|
# Populate a CMake variable with the sources
|
|
|
|
set(gui_SRCS
|
|
|
|
main.cpp
|
|
|
|
mainwindow.cpp
|
|
|
|
misc.cpp
|
2018-11-01 10:38:14 -04:00
|
|
|
extendialog.cpp
|
2018-10-18 23:42:53 -04:00
|
|
|
tests.cpp
|
2018-08-25 15:51:18 -04:00
|
|
|
host/host.cc
|
|
|
|
host/textthread.cc
|
2018-08-02 17:18:08 -04:00
|
|
|
${RESOURCE_FILES}
|
2018-07-28 09:25:32 +03:00
|
|
|
)
|
|
|
|
add_executable(${PROJECT_NAME} WIN32 ${gui_SRCS})
|
2018-08-25 15:51:18 -04:00
|
|
|
target_link_libraries(${PROJECT_NAME} Qt5::Widgets)
|
2018-07-28 09:25:32 +03:00
|
|
|
|
|
|
|
install_qt5_libs(${PROJECT_NAME})
|