-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
34 lines (24 loc) · 811 Bytes
/
CMakeLists.txt
File metadata and controls
34 lines (24 loc) · 811 Bytes
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
cmake_minimum_required(VERSION 3.16)
enable_testing()
project(O2CodeChecker)
# find clang + llvm
find_package(Clang REQUIRED CONFIG)
if( LLVM_FOUND )
list(APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_DIR}")
include(AddLLVM)
# set the compiler flags to match llvm
include(HandleLLVMOptions)
endif()
# Make sure that our source directory is on the current cmake module path so that
# we can include cmake files from this directory.
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
# include Clang macros (unfortunately they are not part of the cmake installation)
include(AddClang)
# the main executable
add_subdirectory(tool)
# the specific aliceO2 checker code
add_subdirectory(aliceO2)
# for testing
add_subdirectory(test)
# some extra utilities
add_subdirectory(utility)