2021-05-25 12:11:49 +03:00
|
|
|
#
|
2021-06-16 20:41:50 +03:00
|
|
|
# Copyright (C) 2020-2021 QuasarApp.
|
2021-06-15 22:12:41 +03:00
|
|
|
# Distributed under the GPLv3 software license, see the accompanying
|
2021-05-25 12:11:49 +03:00
|
|
|
# Everyone is permitted to copy and distribute verbatim copies
|
|
|
|
# of this license document, but changing it is not allowed.
|
|
|
|
#
|
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 3.14)
|
|
|
|
|
|
|
|
set(CURRENT_PROJECT ${PROJECT_NAME}Test)
|
|
|
|
|
|
|
|
|
|
|
|
file(GLOB SOURCE_CPP
|
|
|
|
"*.cpp" "*.qrc"
|
|
|
|
"units/*.cpp" "units/*.qrc"
|
|
|
|
)
|
|
|
|
set(PUBLIC_INCUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
|
|
|
|
set(PUBLIC_INCUDE_DIR ${PUBLIC_INCUDE_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/units")
|
|
|
|
|
|
|
|
|
|
|
|
add_executable(${CURRENT_PROJECT} ${SOURCE_CPP})
|
2021-05-27 10:52:30 +03:00
|
|
|
target_link_libraries(${CURRENT_PROJECT} PRIVATE Qt${QT_VERSION_MAJOR}::Test "${PROJECT_NAME}Core")
|
2021-05-25 12:11:49 +03:00
|
|
|
|
|
|
|
target_include_directories(${CURRENT_PROJECT} PUBLIC ${PUBLIC_INCUDE_DIR})
|
|
|
|
|
|
|
|
|
|
|
|
initTests()
|
|
|
|
addTests(${PROJECT_NAME} ${CURRENT_PROJECT})
|