2018-10-19 10:53:20 +02:00
|
|
|
cmake_minimum_required(VERSION 3.6)
|
|
|
|
project(ProjDestijl CXX)
|
2018-10-16 13:32:33 +02:00
|
|
|
|
|
|
|
set (ProjDestjil_VERSION_MAJOR 1)
|
|
|
|
set (ProjDestjil_VERSION_MINOR 0)
|
|
|
|
set (CMAKE_CXX_STANDARD 11)
|
|
|
|
|
2018-10-19 10:53:20 +02:00
|
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
|
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/superviseur/bin)
|
|
|
|
|
|
|
|
option(BUILD_FOR_XENOMAI "Build for Raspberry" OFF)
|
|
|
|
|
|
|
|
set(CMAKE_BUILD_TYPE DEBUG)
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I/usr/xenomai/include/mercury -I/usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT -fasynchronous-unwind-tables -D__MERCURY__ -I/usr/xenomai/include/alchemy")
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I/usr/xenomai/include/mercury -I/usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT -fasynchronous-unwind-tables -D__MERCURY__ -I/usr/xenomai/include/alchemy")
|
|
|
|
|
|
|
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--no-as-needed -lalchemy -lcopperplate /usr/xenomai/lib/xenomai/bootstrap.o -Wl,--wrap=main -Wl,--dynamic-list=/usr/xenomai/lib/dynlist.ld -L/usr/xenomai/lib -lmercury -lpthread -lrt")
|
2018-10-16 13:32:33 +02:00
|
|
|
|
|
|
|
add_subdirectory("lib")
|
2018-10-19 10:53:20 +02:00
|
|
|
#add_subdirectory("examples")
|
|
|
|
add_subdirectory("superviseur")
|
|
|
|
|