-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
47 lines (41 loc) · 1.02 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
list (FIND BINDINGS "cpp" FINDEX)
if (FINDEX GREATER -1)
message (STATUS "Include Binding cpp")
add_subdirectory (cpp)
endif()
list (FIND BINDINGS "jna" FINDEX)
if (FINDEX GREATER -1)
message (STATUS "Include Binding jna")
add_subdirectory (jna)
endif()
set (regex "swig_.*")
list_find (BINDINGS regex found)
if (found)
find_swig ()
if (SWIG_FOUND)
add_subdirectory (swig)
else()
list_filter (BINDINGS regex)
remove_binding (swig "neither swig2/3 found. Please install swig3.0 and set -DSWIG_EXECUTABLE=")
endif()
endif()
list (FIND BINDINGS "glib" FINDEX)
if (FINDEX GREATER -1)
set (GELEKTRA_LIBRARY gelektra-${SO_VERSION}.0)
add_subdirectory (glib)
set (regex "gi_.*")
list_find (BINDINGS regex found)
if (found)
add_subdirectory (gi)
endif ()
list (FIND BINDINGS "gsettings" FINDEX)
if (FINDEX GREATER -1)
message (STATUS "Include Binding gsettings")
add_subdirectory (gsettings)
endif ()
endif ()
set (regex "intercept_.*")
list_find (BINDINGS regex found)
if (found)
add_subdirectory (intercept)
endif()