blob: 14074a359711fe0355caec1754f1e692622100f9 (
plain)
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
52
53
54
55
|
cmake_minimum_required (VERSION 3.5)
set(lib_name swarmkv)
project(${lib_name})
include_directories(${PROJECT_SOURCE_DIR}/include)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
include(Version)
set(CMAKE_C_FLAGS "-std=gnu99 -Wall")
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -Wall)
set(SWARMKV_DEPEND_DYN_LIB pthread uuid m)
include_directories(${PROJECT_SOURCE_DIR}/inc/)
include_directories(/opt/MESA/include/)
# find_program(CMAKE_CXX_CPPCHECK NAMES cppcheck)
# if (CMAKE_CXX_CPPCHECK)
# list(
# APPEND CMAKE_CXX_CPPCHECK
# "--enable=warning"
# "--enable=all"
# "--force"
# "--std=c99"
# "--error-exitcode=1"
# "--suppress=unreadVariable"
# "--suppress=variableScope"
# "--suppress=ConfigurationNotChecked"
# "--suppress=unreachableCode"
# "--suppress=unusedFunction"
# "--suppress=missingInclude"
# "--suppress=uselessAssignmentPtrArg"
# "--suppress=unmatchedSuppression"
# )
# set(CMAKE_C_CPPCHECK ${CMAKE_CXX_CPPCHECK})
# else()
# message(FATAL_ERROR "Could not find the program cppcheck.")
# endif()
include_directories(include)
#add_subdirectory(source_dir [binary_dir] [EXCLUDE_FROM_ALL])
add_subdirectory(vendor)
add_subdirectory(CRDT)
add_subdirectory(src)
add_subdirectory(test)
add_subdirectory(tools)
add_subdirectory(examples)
#LINK_DIRECTORIES(
# ${PROJECT_BINARY_DIR}/lib
# /usr/local/lib
# /use/lib
# )
include(Package)
|