-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
51 lines (39 loc) · 1.27 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
cmake_minimum_required(VERSION 2.8)
SET(CMAKE_VERBOSE_MAKEFILE TRUE)
ENABLE_TESTING()
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage -Wall -Wextra -DIN_GCC")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fprofile-arcs -ftest-coverage -Wall -Wextra")
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftest-coverage -Wall -Wextra -DIN_GCC")
#SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ftest-coverage -Wall -Wextra")
ADD_DEFINITIONS('-DBASEVER="4.1.2"' '-DDATESTAMP=""' '-DDEVPHASE=""')
INCLUDE_DIRECTORIES(
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/gcc
)
ADD_LIBRARY(core
gcov_reader.cpp
analyser.cpp
errors.c
)
LINK_LIBRARIES(core)
ADD_EXECUTABLE(gnocchi
main.cpp
gcov_reader.cpp
version.c
)
TARGET_LINK_LIBRARIES(core boost_filesystem boost_signals)
TARGET_LINK_LIBRARIES(core boost_program_options)
ADD_LIBRARY(test_input
test_input.c
before.cpp
refactored.cpp
)
ADD_EXECUTABLE(system_test_1 system_test_1.cpp)
ADD_TEST(system_test_1 system_test_1)
ADD_EXECUTABLE(test_mccabe test_mccabe.cpp)
TARGET_LINK_LIBRARIES(test_mccabe boost_graph)
ADD_EXECUTABLE(test_npath_counter test_npath_counter.cpp)
ADD_TEST(test_npath_counter test_npath_counter)
#ADD_EXECUTABLE(test_analyser test_analyser.cpp)
#ADD_TEST(test_analyser test_analyser)
ADD_EXECUTABLE(before before.cpp)