-
Notifications
You must be signed in to change notification settings - Fork 65
/
CMakeLists.txt
39 lines (34 loc) · 1.08 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
cmake_minimum_required(VERSION 3.5.1)
project(ClangBuildAnalyzer)
include(GNUInstallDirs)
set(SRC
# C sources
"src/external/cwalk/cwalk.c"
"src/external/inih/ini.c"
"src/external/xxHash/xxhash.c"
# C++ sources
"src/Analysis.cpp"
"src/Arena.cpp"
"src/BuildEvents.cpp"
"src/Colors.cpp"
"src/main.cpp"
"src/Utils.cpp"
"src/external/enkiTS/TaskScheduler.cpp"
"src/external/inih/cpp/INIReader.cpp"
"src/external/llvm-Demangle/lib/Demangle.cpp"
"src/external/llvm-Demangle/lib/ItaniumDemangle.cpp"
"src/external/llvm-Demangle/lib/MicrosoftDemangle.cpp"
"src/external/llvm-Demangle/lib/MicrosoftDemangleNodes.cpp"
"src/external/simdjson/simdjson.cpp"
)
add_executable(ClangBuildAnalyzer "${SRC}")
target_compile_features(ClangBuildAnalyzer PRIVATE cxx_std_17)
find_library(LIBRT rt)
if(LIBRT)
target_link_libraries(ClangBuildAnalyzer ${LIBRT})
endif()
find_package(Threads REQUIRED)
target_link_libraries(ClangBuildAnalyzer Threads::Threads)
install(TARGETS ClangBuildAnalyzer
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)