mirror of
https://github.com/cetic/unikernels.git
synced 2024-12-26 00:03:25 +07:00
43 lines
917 B
CMake
43 lines
917 B
CMake
|
cmake_minimum_required(VERSION 2.8.9)
|
||
|
|
||
|
# IncludeOS install location
|
||
|
if (NOT DEFINED ENV{INCLUDEOS_PREFIX})
|
||
|
set(ENV{INCLUDEOS_PREFIX} /usr/local)
|
||
|
endif()
|
||
|
include($ENV{INCLUDEOS_PREFIX}/includeos/pre.service.cmake)
|
||
|
project (Router)
|
||
|
|
||
|
# Human-readable name of your service
|
||
|
set(SERVICE_NAME "CETIC Router Service")
|
||
|
|
||
|
# Name of your service binary
|
||
|
set(BINARY "Router")
|
||
|
|
||
|
# Source files to be linked with OS library parts to form bootable image
|
||
|
set(SOURCES
|
||
|
service.cpp # ...add more here
|
||
|
)
|
||
|
|
||
|
# To add your own include paths:
|
||
|
# set(LOCAL_INCLUDES ".")
|
||
|
|
||
|
# DRIVERS / PLUGINS:
|
||
|
|
||
|
if ("$ENV{PLATFORM}" STREQUAL "x86_solo5")
|
||
|
set(DRIVERS
|
||
|
solo5net
|
||
|
)
|
||
|
else()
|
||
|
set(DRIVERS
|
||
|
virtionet # Virtio networking
|
||
|
# virtioblock # Virtio block device
|
||
|
# ... Others from src/drivers
|
||
|
)
|
||
|
endif()
|
||
|
|
||
|
set(PLUGINS
|
||
|
)
|
||
|
|
||
|
# include service build script
|
||
|
include($ENV{INCLUDEOS_PREFIX}/includeos/post.service.cmake)
|