-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCMakeLists.txt
36 lines (27 loc) · 918 Bytes
/
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
cmake_minimum_required(VERSION 3.16)
project(CXXAutomata)
set(CMAKE_CXX_STANDARD 14)
# Setup testing
enable_testing()
include(GoogleTest)
find_package(GTest REQUIRED)
include_directories(${GTEST_INCLUDE_DIR})
include_directories(Src/Automaton)
include_directories(Src/Common)
include_directories(Src/Exceptions)
include_directories(Src/FA)
add_library(CXXAutomata SHARED
Src/Automaton/Automaton.cpp
Src/Exceptions/Exceptions.cpp
Src/FA/DFA.cpp
Src/FA/FA.cpp)
include_directories(Test)
add_executable(CXXAutomataTest Test/main.cpp
Test/testFA.cpp
Test/testDFA.cpp
)
target_link_libraries(CXXAutomataTest CXXAutomata gtest pthread)
gtest_discover_tests(CXXAutomataTest Test/main.cpp
Test/testFA.cpp
Test/testDFA.cpp
)