aboutsummaryrefslogtreecommitdiff
path: root/drive-sdk/deps/bzle/src/CMakeLists.txt
blob: a6f101afffd9e71f1eabe8821868b1e8d1f087a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Include the directory itself as a path to include directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)

include(FindGLIB2)

include_directories(
    ${bzle_SOURCE_DIR}/include    
    ${GLIB2_INCLUDE_DIRS}
)

set(bzle_SOURCES
att.c bluetooth.c btio.c gatt.c gattrib.c hci.c log.h log.c sdp.c utils.c uuid.c
)

add_library(bzle ${bzle_SOURCES})
target_link_libraries(bzle
                    ${GLIB2_LIBRARIES}
                    )

install(TARGETS bzle 
    LIBRARY DESTINATION lib
    ARCHIVE DESTINATION lib
)