-
Notifications
You must be signed in to change notification settings - Fork 10
/
CMakeLists.txt
50 lines (37 loc) · 1.1 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
project (rusty)
# CFLAGS
# Uses the Tilera's memory allocator.
#
# Memory that is required by a single core will be homed on this core.
# Can improve the performances.
add_definitions(-DUSE_TILE_ALLOCATOR)
# Uses Jumbo Ethernet frames if supported by the remote TCP.
#
# Improves the performances but consumes more mPIPE resources.
# add_definitions(-DMPIPE_JUMBO_FRAMES)
# Uses chained mPIPE buffers.
#
# Can improve or decrease performances.
# add_definitions(-DMPIPE_CHAINED_BUFFERS)
# Tells the compiler to generate branch prediction hints.
#
# Can improve performances.
add_definitions(-DBRANCH_PREDICT)
# Disables debug messages and assertions (implies -DNDEBUGMSG).
#
# Increases performances.
add_definitions(-DNDEBUG)
# Disable debug messages.
#
# Increases performances.
add_definitions(-DNDEBUGMSG)
# End of CFLAGS
cmake_minimum_required (VERSION 2.8)
set (CMAKE_CC_FLAGS "-Wall -std=c99 -O2")
set (CMAKE_CXX_FLAGS "-Wall -std=c++11 -O2")
find_package (Threads REQUIRED)
include_directories (.)
add_subdirectory (util)
add_subdirectory (net)
add_subdirectory (driver)
add_subdirectory (app)