Skip to content
This repository was archived by the owner on May 6, 2021. It is now read-only.

Commit 4d5a4f9

Browse files
committed
Merge branch 'bbilger-master'
2 parents 1b98924 + b739eba commit 4d5a4f9

14 files changed

+3614
-9
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/*.user
22
/build
33
/build-x86
4+
.DS_Store
5+

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ message(STATUS "ENABLE_SPIDEV = " ${ENABLE_SPIDEV})
1616
option(ENABLE_V4L2 "Enable the V4L2 grabber" ON)
1717
message(STATUS "ENABLE_V4L2 = " ${ENABLE_V4L2})
1818

19+
option(ENABLE_TINKERFORGE "Enable the TINKERFORGE device" OFF)
20+
message(STATUS "ENABLE_TINKERFORGE = " ${ENABLE_TINKERFORGE})
21+
1922
# Createt the configuration file
2023
# configure a header file to pass some of the CMake settings
2124
# to the source code
@@ -62,6 +65,10 @@ set(CMAKE_FIND_LIBRARY_SUFFIXES_OLD)
6265
find_package(libusb-1.0 REQUIRED)
6366
find_package(Threads REQUIRED)
6467

68+
if (ENABLE_TINKERFORGE)
69+
#find_package(libtinkerforge-1.0 REQUIRED)
70+
endif (ENABLE_TINKERFORGE)
71+
6572
include(${QT_USE_FILE})
6673
add_definitions(${QT_DEFINITIONS})
6774
# TODO[TvdZ]: This linking directory should only be added if we are cross compiling

HyperionConfig.h.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@
88

99
// Define to enable the spi-device
1010
#cmakedefine ENABLE_SPIDEV
11+
12+
// Define to enable the spi-device
13+
#cmakedefine ENABLE_TINKERFORGE

dependencies/build/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

2-
add_subdirectory(jsoncpp)
32
add_subdirectory(getoptPlusPlus)
4-
add_subdirectory(serial)
53
add_subdirectory(hidapi)
4+
add_subdirectory(jsoncpp)
5+
add_subdirectory(serial)
6+
add_subdirectory(tinkerforge)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
project(tinkerforge)
2+
3+
# define the current source/header path
4+
set(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/dependencies/include/tinkerforge)
5+
set(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/dependencies/build/tinkerforge)
6+
7+
include_directories(${CURRENT_HEADER_DIR})
8+
9+
add_library(tinkerforge
10+
${CURRENT_HEADER_DIR}/bricklet_led_strip.h
11+
${CURRENT_HEADER_DIR}/ip_connection.h
12+
13+
${CURRENT_SOURCE_DIR}/bricklet_led_strip.c
14+
${CURRENT_SOURCE_DIR}/ip_connection.c)

0 commit comments

Comments
 (0)