-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
30 lines (25 loc) · 954 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
cmake_minimum_required(VERSION 2.8.9)
project(raspistreamer)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic -std=c++11")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,--no-as-needed")
execute_process(COMMAND xbuild /p:OutputPath=../../../build ../highflyers-protocol/src/highflyers-protocol-generator/highflyers-protocol-generator.csproj)
execute_process(
COMMAND
cp
../highflyers-protocol/src/highflyers-protocol-c/frame_parser_helper.h
../highflyers-protocol/src/highflyers-protocol-c/frame_parser_helper.c
../highflyers-protocol/src/highflyers-protocol-c/parser.h
../highflyers-protocol/src/highflyers-protocol-c/parser.c
../highflyers-protocol/src/highflyers-protocol-c/types.h
../src/protocol/
)
execute_process(
COMMAND
./HFCsGenerator.exe
../highflyers-protocol/descriptions/imav2014.hfproto
../src/protocol/frames
../src/protocol/frame_builder
--language=C
)
find_package(PkgConfig)
add_subdirectory(src)