#*******************************************************************************
#**  This file is part of Dux Rei Nummariae.                                 ***
#**                                                                          ***
#**  Copyright (C) 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024            ***
#**  John Schneiderman <Licencing _AT_ Schneiderman _DOT_ me>                ***
#**                                                                          ***
#**  This program is free software: you can redistribute it and/or modify it ***
#**  under the terms of the GNU Affero General Public License as published   ***
#**  by the Free Software Foundation, either version 3 of the License, or    ***
#**  (at your option) any later version.                                     ***
#**                                                                          ***
#**  This program is distributed in the hope that it will be useful, but     ***
#**  WITHOUT ANY WARRANTY; without even the implied warranty of              ***
#**  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                    ***
#**  See the GNU Affero General Public License for more details.             ***
#**                                                                          ***
#**  You should have received a copy of the GNU Affero General Public License***
#**  along with this program. If not, see <http://www.gnu.org/licenses/>.    ***
#*******************************************************************************
cmake_minimum_required(VERSION 3.20 FATAL_ERROR)
project(budgeting-unit-tests)

find_package(Qt6 REQUIRED COMPONENTS Core Test)
find_package(qt-mocks REQUIRED)

set(${PROJECT_NAME}_EXTERNAL_DECLARATIONS
		""
)
set(${PROJECT_NAME}_EXTERNAL_DEFINITIONS
		""
)

set_up_project("UnitTest")

find_package(pecunia REQUIRED)

list(APPEND libraries qt-mocks budgeting pecunia)

add_unit_test(Algorithm ${libraries})
add_unit_test(Budget ${libraries})
add_unit_test(BudgetedMoney ${libraries})
add_unit_test(BudgetedMoneyMap ${libraries})
add_unit_test(BudgetItemDue ${libraries})
add_unit_test(BudgetItemsDue ${libraries})
add_unit_test(BudgetIterator ${libraries})
add_unit_test(BudgetSource ${libraries})
add_unit_test(BudgetTotals ${libraries})
add_unit_test(Nontrack ${libraries})
add_unit_test(NontrackMap ${libraries})
add_unit_test(Bill ${libraries})
add_unit_test(BillMap ${libraries})
add_unit_test(Debt ${libraries})
add_unit_test(DebtMap ${libraries})
add_unit_test(EventFrequency ${libraries})
add_unit_test(Goal ${libraries})
add_unit_test(GoalMap ${libraries})
add_unit_test(Wage ${libraries})
add_unit_test(WageMap ${libraries})
