mirror of
https://github.com/Skycoder42/QHotkey.git
synced 2026-11-19 12:49:58 +03:00
Add CI
This commit is contained in:
@@ -1,17 +1,11 @@
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
if(QT_MAJOR GREATER_EQUAL 6)
|
||||
qt_wrap_ui(test_UI_HEADERS hottestwidget.ui)
|
||||
qt_wrap_cpp(test_MOC_HEADERS hottestwidget.h)
|
||||
else()
|
||||
qt5_wrap_ui(test_UI_HEADERS hottestwidget.ui)
|
||||
qt5_wrap_cpp(test_MOC_HEADERS hottestwidget.h)
|
||||
endif()
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
add_executable(HotkeyTest
|
||||
main.cpp
|
||||
hottestwidget.cpp
|
||||
${test_UI_HEADERS}
|
||||
${test_MOC_HEADERS})
|
||||
target_link_libraries(HotkeyTest Qt${QT_MAJOR}::Widgets qhotkey)
|
||||
target_include_directories(HotkeyTest PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
hottestwidget.ui)
|
||||
|
||||
find_package(Qt${QT_MAJOR} COMPONENTS Widgets REQUIRED)
|
||||
target_link_libraries(HotkeyTest Qt${QT_MAJOR}::Widgets QHotkey::QHotkey)
|
||||
|
||||
Reference in New Issue
Block a user