4
0
mirror of https://github.com/QuasarApp/CMakeProject.git synced 2025-04-26 05:34:34 +00:00
CMakeProject/tests/CMakeLists.txt
EndrII 1c06bf8477 major template update
* fix copyright
* fix library structure of the source codes
* added support version value of the library
* fix source location of the generated gocumentatio (powered by doxygen)
2022-01-19 11:05:03 +03:00

28 lines
814 B
CMake

#
# Copyright (C) 2020-2022 QuasarApp.
# Distributed under the GPLv3 software license, see the accompanying
# 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" "*.h" "*.qrc"
"units/*.cpp" "units/*.h" "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})
target_link_libraries(${CURRENT_PROJECT} PRIVATE Qt${QT_VERSION_MAJOR}::Test RENAME_ME)
target_include_directories(${CURRENT_PROJECT} PUBLIC ${PUBLIC_INCUDE_DIR})
initTests()
addTests(${PROJECT_NAME} ${CURRENT_PROJECT})