-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
51 lines (40 loc) · 1.31 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.6)
project (CPP_UTILS_LIB)
set(CMAKE_CXX_COMPILER "/usr/bin/g++-5.1.0")
set (CXX_FLAGS "-Wall -Wextra -pedantic -Weffc++ -Wshadow "
"-Wpointer-arith -Wcast-qual "
"-ggdb -fprofile-arcs -ftest-coverage -std=c++0x")
add_definitions( ${CXX_FLAGS} )
add_subdirectory (lib)
add_subdirectory (test EXCLUDE_FROM_ALL)
add_subdirectory (other EXCLUDE_FROM_ALL)
find_package(Doxygen)
if(DOXYGEN_FOUND)
add_custom_target(doc ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/doxyfile)
endif(DOXYGEN_FOUND)
add_custom_target(reset
COMMAND rm -rf html
COMMAND rm -rf CMakeFiles
COMMAND rm -rf Makefile
COMMAND rm -rf cmake_install.cmake
COMMAND rm -rf CMakeCache.txt
COMMAND rm -rf build/CMakeFiles
COMMAND rm -rf build/Makefile
COMMAND rm -rf build/cmake_install.cmake
COMMAND rm -rf build/CMakeCache.txt
COMMAND rm -rf build/*.a
COMMAND rm -rf test/CMakeFiles
COMMAND rm -rf test/Makefile
COMMAND rm -rf test/cmake_install.cmake
COMMAND rm -rf test/CMakeCache.txt
COMMAND rm -rf test/CTestTestfile.cmake
COMMAND rm -rf test/cov
COMMAND rm -rf test/leak.log.core.*
COMMAND rm -rf test/gdb.out
COMMAND rm -rf test/*.gcno
COMMAND rm -rf test/lcov*.info
COMMAND rm -rf test/leak.log
COMMAND rm -rf test/test.out
COMMAND rm -rf test/generated_main.cpp
COMMAND rm -rf test/test
)