-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
41 lines (33 loc) · 866 Bytes
/
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
cmake_minimum_required ( VERSION 2.8.12 )
project ( fuseadf C )
set ( fuseadf_VERSION_MAJOR 0 )
set ( fuseadf_VERSION_MINOR 5 )
find_package ( PkgConfig REQUIRED )
pkg_check_modules ( FUSE REQUIRED fuse )
pkg_check_modules ( ADFLIB REQUIRED adflib>=0.9.0 )
add_compile_options (
-Wall
-Wextra
-Wconversion
-Wsign-conversion
-pedantic
-pedantic-errors
-Werror-implicit-function-declaration
-Werror=incompatible-pointer-types
# $<$<CONFIG:DEBUG>:-g3>
# $<$<CONFIG:DEBUG>:-Og>
$<$<CONFIG:DEBUG>:-ggdb>
# $<$<CONFIG:DEBUG>:-fsanitize=address>
$<$<CONFIG:RELEASE>:-O2>
${FUSE_CFLAGS}
${ADFLIB_CFLAGS}
)
add_link_options (
# $<$<CONFIG:DEBUG>:-lasan>
# $<$<CONFIG:DEBUG>:-fsanitize=address>
)
option ( FUSEADF_ALLOW_USE_AS_ROOT "Allow using as root" OFF )
add_subdirectory ( src )
# testing
enable_testing()
add_subdirectory ( tests )