blob: 5f8d644e2e0aadf09b80df85748a5724a1b06426 (
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
|
set (direct_bt_LIB_INCLUDE_DIRS
${PROJECT_SOURCE_DIR}/api
${PROJECT_SOURCE_DIR}/api/direct_bt
${PROJECT_SOURCE_DIR}/include
)
include_directories(
${direct_bt_LIB_INCLUDE_DIRS}
${CMAKE_CURRENT_BINARY_DIR}
)
set (direct_bt_LIB_SRCS
${PROJECT_SOURCE_DIR}/src/direct_bt/dfa_utf8_decode.cpp
${PROJECT_SOURCE_DIR}/src/direct_bt/DBTEnv.cpp
${PROJECT_SOURCE_DIR}/src/direct_bt/dbt_debug.cpp
${PROJECT_SOURCE_DIR}/src/direct_bt/BasicTypes.cpp
${PROJECT_SOURCE_DIR}/src/ieee11073/DataTypes.cpp
${PROJECT_SOURCE_DIR}/src/direct_bt/UUID.cpp
${PROJECT_SOURCE_DIR}/src/direct_bt/BTTypes.cpp
${PROJECT_SOURCE_DIR}/src/direct_bt/HCIComm.cpp
${PROJECT_SOURCE_DIR}/src/direct_bt/HCITypes.cpp
${PROJECT_SOURCE_DIR}/src/direct_bt/HCIHandler.cpp
${PROJECT_SOURCE_DIR}/src/direct_bt/L2CAPComm.cpp
${PROJECT_SOURCE_DIR}/src/direct_bt/MgmtTypes.cpp
${PROJECT_SOURCE_DIR}/src/direct_bt/DBTManager.cpp
${PROJECT_SOURCE_DIR}/src/direct_bt/DBTTypes.cpp
${PROJECT_SOURCE_DIR}/src/direct_bt/DBTAdapter.cpp
${PROJECT_SOURCE_DIR}/src/direct_bt/DBTDevice.cpp
${PROJECT_SOURCE_DIR}/src/direct_bt/ATTPDUTypes.cpp
${PROJECT_SOURCE_DIR}/src/direct_bt/GATTNumbers.cpp
${PROJECT_SOURCE_DIR}/src/direct_bt/GATTDescriptor.cpp
${PROJECT_SOURCE_DIR}/src/direct_bt/GATTCharacteristic.cpp
${PROJECT_SOURCE_DIR}/src/direct_bt/GATTService.cpp
${PROJECT_SOURCE_DIR}/src/direct_bt/GATTHandler.cpp
# autogenerated files
${CMAKE_CURRENT_BINARY_DIR}/../version.c
)
add_library (direct_bt SHARED ${direct_bt_LIB_SRCS})
target_link_libraries (
direct_bt
unwind
${CMAKE_THREAD_LIBS_INIT}
)
set_target_properties(
direct_bt
PROPERTIES
SOVERSION ${tinyb_VERSION_MAJOR}
VERSION ${tinyb_VERSION_STRING}
CXX_STANDARD 17
CXX_STANDARD_REQUIRED ON
COMPILE_FLAGS "-Wall -Wextra -Werror"
)
install (DIRECTORY ${PROJECT_SOURCE_DIR}/api/direct_bt/ DESTINATION include/direct_bt)
macro (tinyb_CREATE_INSTALL_PKGCONFIG generated_file install_location)
configure_file (${generated_file}.cmake ${CMAKE_CURRENT_BINARY_DIR}/${generated_file} @ONLY)
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${generated_file} DESTINATION ${install_location})
endmacro (tinyb_CREATE_INSTALL_PKGCONFIG)
tinyb_create_install_pkgconfig (direct_bt.pc lib${LIB_SUFFIX}/pkgconfig)
install(TARGETS direct_bt LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|