-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
31 lines (21 loc) · 1.45 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
cmake_minimum_required(VERSION 3.13)
project("Finite state tool")
include_directories(Automation_base)
link_directories(Automation_base)
add_library(AutomationBase STATIC Automation_base/AutomationBase.h Automation_base/AutomationBase.cpp)
add_library(CustomSet STATIC Collections/Custom_set/CustomSet.hpp)
add_library(Commands STATIC Command_shell/Commands/Commands.h Command_shell/Commands/Commands.cpp)
add_library(CommandsDispatcher STATIC Command_shell/Dispatcher/CommandDispatcher.h Command_shell/Dispatcher/CommandDispatcher.cpp)
add_library(Environment STATIC Environment/AFL_Environment.h Environment/AFL_Environment.cpp)
add_library(Fsa STATIC Finate_state_automation/FiniteStateAutomation.h Finate_state_automation/FiniteStateAutomation.cpp)
add_library(GraphVis STATIC Graph_visualization_tool/GraphVisualiser.h Graph_visualization_tool/GraphVisualiser.cpp)
add_library(Npda STATIC Non-deterministic_pushdown_automaton/NPDA.h Non-deterministic_pushdown_automaton/NPDA.cpp)
set_target_properties(CustomSet PROPERTIES LINKER_LANGUAGE CXX)
add_executable(FST Fst_dispatcher/main.cpp)
target_link_libraries(FST CustomSet CommandsDispatcher Commands Environment Fsa GraphVis Npda AutomationBase)
add_executable(Tests Tests/tests.cpp)
target_link_libraries(Tests Fsa Npda AutomationBase)
file(COPY Graph_visualization_tool/header.x
DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY Graph_visualization_tool/footer.x
DESTINATION ${CMAKE_CURRENT_BINARY_DIR})