summaryrefslogtreecommitdiffstats
path: root/examples/CMakeLists.txt
blob: e20ff993263755c7197f4592f5c327fea4246db0 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
include_directories(${PROJECT_SOURCE_DIR}/api)

#include_directories(
#  ${PROJECT_SOURCE_DIR}/api
#  ${direct_bt_LIB_INCLUDE_DIRS}
#  ${tinyb_LIB_INCLUDE_DIRS}
#  ${GLIB2_INCLUDE_DIRS}
#  ${GIO_INCLUDE_DIRS}
#  ${GIO-UNIX_INCLUDE_DIRS}
#)

if(NOT SKIP_TINYB)

    add_executable (hellotinyb tinyb/hellotinyb.cpp)
    set_target_properties(hellotinyb
        PROPERTIES
        CXX_STANDARD 11
        COMPILE_FLAGS "-Wall -Wextra -Werror")
    target_link_libraries (hellotinyb tinyb)
    add_dependencies(hellotinyb tinyb)

    add_executable (checkinit tinyb/checkinit.cpp)
    set_target_properties(checkinit
        PROPERTIES
        CXX_STANDARD 11
        COMPILE_FLAGS "-Wall -Wextra -Werror")
    target_link_libraries (checkinit tinyb)
    add_dependencies(checkinit tinyb)

    add_executable (asynctinyb tinyb/asynctinyb.cpp)
    set_target_properties(asynctinyb
        PROPERTIES
        CXX_STANDARD 11
        COMPILE_FLAGS "-Wall -Wextra -Werror")
    target_link_libraries (asynctinyb tinyb)
    add_dependencies(asynctinyb tinyb)

    add_executable (esstinyb tinyb/esstinyb.cpp)
    set_target_properties(esstinyb
        PROPERTIES
        CXX_STANDARD 11
        COMPILE_FLAGS "-Wall -Wextra -Werror")
    target_link_libraries (esstinyb tinyb)
    add_dependencies(esstinyb tinyb)

    add_executable (notifications tinyb/notifications.cpp)
    set_target_properties(notifications
        PROPERTIES
        CXX_STANDARD 11
        COMPILE_FLAGS "-Wall -Wextra -Werror")
    target_link_libraries (notifications tinyb)
    add_dependencies(notifications tinyb)

    add_executable (uuid tinyb/uuid.cpp)
    set_target_properties(uuid
        PROPERTIES
        CXX_STANDARD 11
        COMPILE_FLAGS "-Wall -Wextra -Werror")
    target_link_libraries (uuid tinyb)
    add_dependencies(uuid tinyb)

    add_executable (list_mfg tinyb/list_mfg.cpp)
    set_target_properties(list_mfg
        PROPERTIES
        CXX_STANDARD 11
        COMPILE_FLAGS "-Wall -Wextra -Werror")
    target_link_libraries (list_mfg tinyb)
    add_dependencies(list_mfg tinyb)

endif()

add_executable (dbt_scanner00 direct_bt_scanner00/dbt_scanner00.cpp)
set_target_properties(dbt_scanner00
    PROPERTIES
    CXX_STANDARD 17
    CXX_STANDARD_REQUIRED ON
    COMPILE_FLAGS "-Wall -Wextra -Werror")
target_link_libraries (dbt_scanner00 direct_bt)
add_dependencies(dbt_scanner00 direct_bt)

add_executable (dbt_scanner01 direct_bt_scanner01/dbt_scanner01.cpp)
set_target_properties(dbt_scanner01
    PROPERTIES
    CXX_STANDARD 17
    CXX_STANDARD_REQUIRED ON
    COMPILE_FLAGS "-Wall -Wextra -Werror")
target_link_libraries (dbt_scanner01 direct_bt)
add_dependencies(dbt_scanner01 direct_bt)

add_executable (dbt_scanner10 direct_bt_scanner10/dbt_scanner10.cpp)
set_target_properties(dbt_scanner10
    PROPERTIES
    CXX_STANDARD 17
    CXX_STANDARD_REQUIRED ON
    COMPILE_FLAGS "-Wall -Wextra -Werror")
target_link_libraries (dbt_scanner10 direct_bt)
add_dependencies(dbt_scanner10 direct_bt)

install(TARGETS dbt_scanner00 dbt_scanner01 dbt_scanner10 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})