mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
23 lines
489 B
CMake
23 lines
489 B
CMake
|
# Copyright (C) 2021 Robin Stuart <rstuart114@gmail.com>
|
||
|
# vim: set ts=4 sw=4 et :
|
||
|
|
||
|
cmake_minimum_required(VERSION 3.5)
|
||
|
project(QZint_tests LANGUAGES CXX)
|
||
|
|
||
|
enable_testing()
|
||
|
|
||
|
if(USE_QT6)
|
||
|
find_package(Qt6Test REQUIRED)
|
||
|
else()
|
||
|
find_package(Qt5Test REQUIRED)
|
||
|
endif()
|
||
|
|
||
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||
|
|
||
|
set(CMAKE_AUTOMOC ON)
|
||
|
|
||
|
add_executable(test_qzint test_qzint.cpp)
|
||
|
add_test(NAME qzint COMMAND test_qzint)
|
||
|
|
||
|
target_link_libraries(test_qzint PRIVATE QZint Qt${QT_VERSION_MAJOR}::Test)
|