-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
49 lines (41 loc) · 1022 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
37
38
39
40
41
42
43
44
45
46
47
48
49
##
## Boost StateChart Extractor
##
## Distributed under the Boost Software License, Version 1.0.
## (See accompanying file LICENSE or copy at
## http://www.boost.org/LICENSE_1_0.txt)
##
cmake_minimum_required(VERSION 3.10)
project(bosce VERSION 1.3.1 LANGUAGES CXX)
enable_testing()
find_package(Boost REQUIRED COMPONENTS program_options filesystem)
find_package(Threads REQUIRED)
include(GNUInstallDirs)
include(cmake/AddressSanitizer.cmake)
include(cmake/ClangTidy.cmake)
include(cmake/CompilerFlags.cmake)
add_executable(bosce
src/main.cpp
src/ScModel.cpp
src/ScParser.cpp
src/ObjDumpParser.cpp
src/ParserHelpers.h
src/AbstractGenerator.h
src/StmListGenerator.cpp
src/TextGenerator.cpp
src/PlantUmlGenerator.cpp
src/YamlGenerator.cpp
)
target_link_libraries(bosce
PUBLIC
Threads::Threads
Boost::program_options
Boost::filesystem
)
install(
TARGETS
bosce
RUNTIME DESTINATION
${CMAKE_INSTALL_BINDIR}
)
add_subdirectory(test)