From 5cb96fd96f51e949c5311db3080c58d851b7c2e1 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 8 Feb 2015 21:29:47 +0100 Subject: o Initial import of Linux code for talking to Bluetooth devices. --- CMakeLists.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..8a43b50 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,19 @@ +cmake_minimum_required(VERSION 2.8.4) +project(ble_toys) + +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") + +set(Boost_USE_STATIC_LIBS OFF) +set(Boost_USE_MULTITHREADED OFF) +set(Boost_USE_STATIC_RUNTIME OFF) + +add_definitions(-DBOOST_ALL_DYN_LINK) + +find_package(Boost REQUIRED COMPONENTS system log thread) + +set(SOURCE_FILES main.cpp Bluetooth.cpp LinuxBluetooth.cpp) +add_executable(ble_toys ${SOURCE_FILES}) + +target_link_libraries(ble_toys bluetooth) +target_link_libraries(ble_toys pthread) +target_link_libraries(ble_toys ${Boost_LIBRARIES}) -- cgit v1.2.3