-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add application openambit-routes for sending routes from files to the…
… watch Implement reading and parsing JSON from files to be able to send routes from locally prepared files to the watch
- Loading branch information
Showing
16 changed files
with
522 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
cmake_minimum_required(VERSION 2.8.5) | ||
project (OPENAMBITROUTES CXX) | ||
|
||
set (OPENAMBIT_VERSION 0.5) | ||
|
||
# Where to lookup modules | ||
set(CMAKE_MODULE_PATH "${OPENAMBITROUTES_SOURCE_DIR}/cmake") | ||
|
||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") | ||
|
||
find_package(libambit REQUIRED) | ||
find_package(Movescount REQUIRED) | ||
IF (!WIN32) | ||
find_package(UDev REQUIRED) | ||
ELSE (!WIN32) | ||
set(UDEV_LIBS "") | ||
ENDIF (!WIN32) | ||
find_package(Qt5Core REQUIRED) | ||
|
||
include(GNUInstallDirs) | ||
|
||
include_directories( | ||
${CMAKE_CURRENT_SOURCE_DIR} | ||
${CMAKE_CURRENT_BINARY_DIR} | ||
${LIBAMBIT_INCLUDE_DIR} | ||
.. | ||
) | ||
|
||
link_directories( | ||
${LIBAMBIT_LIBS_DIR} | ||
${MOVESCOUNT_LIBS_DIR} | ||
) | ||
|
||
set(OPENAMBITROUTES_HDRS Task.h) | ||
|
||
set(OPENAMBITROUTES_SRCS main.cpp Task.cpp) | ||
|
||
set(CMAKE_AUTOMOC ON) | ||
|
||
add_definitions(-DAPP_VERSION="${OPENAMBIT_VERSION}") | ||
|
||
add_executable(openambit-routes ${OPENAMBITROUTES_HDRS} ${OPENAMBITROUTES_SRCS}) | ||
|
||
target_link_libraries(openambit-routes ${LIBAMBIT_LIBS} ${MOVESCOUNT_LIBS} ${UDEV_LIBS} Qt5::Core ) | ||
|
||
install(TARGETS openambit-routes DESTINATION ${CMAKE_INSTALL_BINDIR}) |
Oops, something went wrong.