blob: fbbb8fa2478e861ee956fea9bacae8a338b46599 (
plain)
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 2.8)
project(SimpleParser)
set(
CMAKE_CXX_FLAGS
"${CMAKE_CXX_FLAGS} -std=c++17 -W -Wall -Wextra -Winline -pedantic"
)
add_library(
SimpleParser
SHARED
src/nodes.cc
src/tree.cc
src/utils.cc
src/parser.cc
)
add_executable(
tests
test.cc
)
add_executable(
clc
clc.cc
)
target_link_libraries(
tests
SimpleParser
gtest
)
target_link_libraries(
clc
SimpleParser
boost_program_options
)
install(
TARGETS
clc
DESTINATION
bin
)
add_custom_command(
TARGET
tests
POST_BUILD COMMAND
./tests
)
|