Renamed dsdlc target, library made static, added linux drivers project (empty yet)

This commit is contained in:
Pavel Kirienko
2014-03-29 15:31:06 +04:00
parent 89e5cf60e0
commit 21152e00db
6 changed files with 54 additions and 5 deletions
+22
View File
@@ -0,0 +1,22 @@
#
# Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
#
cmake_minimum_required(VERSION 2.8)
project(libuavcan_linux)
#
# Library (header only)
#
install(DIRECTORY include/uavcan_linux DESTINATION include)
#
# Test/demo executables
#
find_library(UAVCAN_LIB uavcan REQUIRED)
include_directories(include)
set(CMAKE_CXX_FLAGS "-Wall -Wextra -Werror -pedantic -std=c++0x -g3 -O1") # GCC or Clang
add_executable(log_subscriber test/log_subscriber.cpp)
target_link_libraries(log_subscriber ${UAVCAN_LIB})
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
num_cores=$(grep -c ^processor /proc/cpuinfo)
if [ -z "$num_cores" ]; then
echo "num_cores=? WTF?"
num_cores=4
fi
cppcheck . --error-exitcode=1 --quiet --enable=all --platform=unix64 --std=c99 --std=c++11 \
--inline-suppr --force --template=gcc -j$num_cores \
-Iinclude $@
@@ -0,0 +1 @@
@@ -0,0 +1 @@
@@ -0,0 +1,14 @@
/*
* Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
*/
#include <iostream>
#include <uavcan/uavcan.hpp>
#include <uavcan_linux/socketcan.hpp>
#include <uavcan_linux/clock.hpp>
int main()
{
std::cout << "Hello owl." << std::endl;
return 0;
}