Skip to content
Snippets Groups Projects
Commit df7df7ae authored by Jaime Arias's avatar Jaime Arias
Browse files

All gates are in a folder

parent 2ee75d48
No related branches found
No related tags found
No related merge requests found
Showing with 21 additions and 10 deletions
......@@ -2,5 +2,16 @@
cmake_minimum_required(VERSION 3.0.0)
# Attack-Defence Tree Library
add_library(adtree_lib ad_tree.cpp and.cpp evaluation_strategy.cpp gate.cpp leaf.cpp nand.cpp node_type.cpp nor.cpp or.cpp parallel_strategy.cpp sand.cpp sequential_strategy.cpp snand.cpp snor.cpp sor.cpp tree_node.cpp)
set(GATES_FILES
${CMAKE_CURRENT_LIST_DIR}/gates/and.cpp
${CMAKE_CURRENT_LIST_DIR}/gates/nand.cpp
${CMAKE_CURRENT_LIST_DIR}/gates/nor.cpp
${CMAKE_CURRENT_LIST_DIR}/gates/or.cpp
${CMAKE_CURRENT_LIST_DIR}/gates/sor.cpp
${CMAKE_CURRENT_LIST_DIR}/gates/snor.cpp
${CMAKE_CURRENT_LIST_DIR}/gates/sand.cpp
${CMAKE_CURRENT_LIST_DIR}/gates/snand.cpp
)
add_library(adtree_lib ad_tree.cpp evaluation_strategy.cpp gate.cpp leaf.cpp node_type.cpp parallel_strategy.cpp sequential_strategy.cpp tree_node.cpp ${GATES_FILES})
target_include_directories(adtree_lib PUBLIC ${CMAKE_CURRENT_LIST_DIR})
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
......@@ -3,14 +3,14 @@
#include "automata.hpp"
#include "ad_tree.hpp"
#include "and.hpp"
#include "or.hpp"
#include "sand.hpp"
#include "sor.hpp"
#include "nand.hpp"
#include "nor.hpp"
#include "snand.hpp"
#include "snor.hpp"
#include "gates/and.hpp"
#include "gates/or.hpp"
#include "gates/sand.hpp"
#include "gates/sor.hpp"
#include "gates/nand.hpp"
#include "gates/nor.hpp"
#include "gates/snand.hpp"
#include "gates/snor.hpp"
#include "leaf.hpp"
class Translator{
......@@ -34,4 +34,4 @@ class Translator{
static Automata* adt2amas_translate(ADtree *adtree);
};
#endif
\ No newline at end of file
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment