2018-07-28 14:25:32 +08:00
|
|
|
include(QtUtils)
|
|
|
|
msvc_registry_search()
|
|
|
|
find_qt5(Core Widgets)
|
|
|
|
|
2018-08-03 05:18:08 +08:00
|
|
|
set(RESOURCE_FILES NextHooker.rc NextHooker.ico)
|
2018-07-28 14:25:32 +08:00
|
|
|
# Populate a CMake variable with the sources
|
|
|
|
set(gui_SRCS
|
|
|
|
main.cpp
|
|
|
|
mainwindow.cpp
|
|
|
|
hostsignaller.cpp
|
|
|
|
misc.cpp
|
|
|
|
extensions.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})
|
|
|
|
target_link_libraries(${PROJECT_NAME} Qt5::Widgets vnrhost)
|
|
|
|
|
|
|
|
install_qt5_libs(${PROJECT_NAME})
|