mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +01:00
Move to Qt
Everything seems to be working Only timer is not moved over
This commit is contained in:
@@ -4,11 +4,14 @@ include_directories(${GTEST_INCLUDE_DIR})
|
||||
link_directories(${GTEST_LIB_DIR})
|
||||
|
||||
find_package(GTest REQUIRED)
|
||||
find_package(Qt6 REQUIRED COMPONENTS Core)
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTORCC ON)
|
||||
|
||||
# tests
|
||||
file(GLOB_RECURSE TEST_SOURCES "*.cpp")
|
||||
file(GLOB_RECURSE TEST_SOURCES "*.[hc]pp")
|
||||
add_executable(tests ${TEST_SOURCES})
|
||||
target_link_libraries(tests ${LIBS})
|
||||
|
||||
target_compile_options(tests PRIVATE $<$<CONFIG:Debug>:
|
||||
-Wall -Wextra -pedantic-errors -Wconversion -Wsign-conversion
|
||||
@@ -19,6 +22,7 @@ target_link_libraries(tests
|
||||
UI
|
||||
gtest
|
||||
GTest::gtest_main
|
||||
Qt::Core
|
||||
)
|
||||
|
||||
target_include_directories(tests
|
||||
@@ -30,4 +34,4 @@ target_include_directories(tests
|
||||
)
|
||||
|
||||
include(GoogleTest)
|
||||
gtest_discover_tests(tests)
|
||||
gtest_discover_tests(tests)
|
||||
|
||||
Reference in New Issue
Block a user