-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
47 lines (38 loc) · 1.13 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
# cmake -DLLVM_DIR="/usr/lib/llvm-10/lib/cmake/llvm" -DClang_DIR="/usr/lib/llvm-10/lib/cmake/clang" ..
cmake_minimum_required( VERSION 3.16 )
project( Raisin
LANGUAGES CXX
VERSION 0.0.1
DESCRIPTION "Produce CFG from a C++ source code"
)
if( NOT CMAKE_BUILD_TYPE )
set( CMAKE_BUILD_TYPE "Release" )
endif()
message( STATUS "Build type: ${CMAKE_BUILD_TYPE}" )
find_package( Clang REQUIRED 13 )
message( STATUS "LLVM version: ${LLVM_PACKAGE_VERSION}" )
message( STATUS "Using ClangConfig.cmake in: ${Clang_DIR}" )
message( STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}" )
find_package( CMakeUtils )
set( CMAKE_UTILS * )
set( COVERAGE_GLOBAL_ONLY ON )
include( CMakeUtils )
add_subdirectory( "${CMAKE_SOURCE_DIR}/icon" )
add_subdirectory( "${CMAKE_SOURCE_DIR}/src" )
add_subdirectory( "${CMAKE_SOURCE_DIR}/test" )
coverage_global()
codechecker(
GLOBAL
NO_CTU
SKIP
+${CMAKE_SOURCE_DIR}/src
+${CMAKE_SOURCE_DIR}/test/unit
-*
ARGS
"${CMAKE_BINARY_DIR}/compile_commands.json"
-j 4
--keep-gcc-include-fixed
--keep-gcc-intrin
ADDITIONAL_OPTIONAL_REPORTS
"${CMAKE_BINARY_DIR}/src/CMakeFiles/raisin_cppcheck.dir/codechecker_reports"
)