-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
52 lines (45 loc) · 2.13 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
cmake_minimum_required(VERSION 3.26)
# Найти интерпретатор Python
find_program(PYTHON_EXECUTABLE python PATHS ${CMAKE_SOURCE_DIR}/venv/bin)
if(NOT PYTHON_EXECUTABLE)
message(FATAL_ERROR "Python interpreter not found.")
endif()
# Вызываем скрипт ComponentScanner.py перед началом компиляции
add_custom_target(scan_components
COMMAND ${PYTHON_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/Bocchi/ComponentScanner/ComponentScan.py"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/Bocchi/ComponentScanner
)
# Добавьте scan_components как зависимость для вашей цели компиляции
project(Bocchi)
set(CMAKE_CXX_STANDARD 17)
add_executable(Bocchi main.cpp
Bocchi/BocchiCore/ComponentRegistry/ComponentRegistry.h
Bocchi/BocchiCore/ComponentRegistry/ComponentRegistryException.h
Bocchi/BocchiCore/Context_class/Context.cpp
Bocchi/BocchiCore/Context_class/Context.h
Bocchi/BocchiApplication/MenuCase.h
Bocchi/BocchiApplication/BocchiApplication_class/BocchiApplication.h
Bocchi/BocchiApplication/BocchiApplication_class/BocchiApplication.cpp
Bocchi/BocchiApplication/MainMenuCase.h
Bocchi/BocchiCore/ComponentRegistry/Object.h
Bocchi/BocchiApplication/IncludeComponents.h
Bocchi/EventSystem/ConsoleHandler.h
Bocchi/EventSystem/ObservedInterface.h
Bocchi/EventSystem/ObserverInterface.h
Bocchi/BocchiApplication/BocchiApplicationStateUpdater.h
Bocchi/BocchiApplication/MenuState.h
Bocchi/Utils/Carousel.h
TestCases/MenuCases.h
TestCases/MenuCases.cpp
Bocchi/BocchiApplication/Printers/BocchiApplicationPrinterInterface.h
Bocchi/BocchiApplication/Printers/BocchiApplicationPrinterAsTree.h
Bocchi/BocchiApplication/Printers/BocchiApplicationPrinterAsList.h
Sin/Makloren.h
Sin/Bhaskara.h
Sin/CORDIC.h
Sin/Utils.h
MathParser/MathParser.h
MathParser/PostfixNotationComputer.h
MathParser/PostfixNotationConverter.h
)
add_dependencies(Bocchi scan_components)