-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
54 lines (40 loc) · 1.03 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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 (ws_example)
# Human-readable name of your service
set(SERVICE_NAME "IncludeOS WebSocket Example")
# Name of your service binary
set(BINARY "ws_example")
# Source files to be linked with OS library parts to form bootable image
set(SOURCES
service.cpp Messages.cpp Game.cpp
)
#
# Service CMake options
# (uncomment to enable)
#
# MISC:
# To add your own include paths:
# set(LOCAL_INCLUDES ".")
# Adding memdisk (expects my.disk to exist in current dir):
# set(MEMDISK ${CMAKE_SOURCE_DIR}/my.disk)
# DRIVERS / PLUGINS:
if ("$ENV{PLATFORM}" STREQUAL "x86_solo5")
set(DRIVERS
solo5net
)
else()
set(DRIVERS
virtionet # Virtio networking
)
endif()
set(PLUGINS
autoconf
)
# include service build script
include($ENV{INCLUDEOS_PREFIX}/includeos/post.service.cmake)
diskbuilder(disk)