forked from DonckHans/rrpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
28 lines (21 loc) · 870 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
cmake_minimum_required(VERSION 3.6)
project(RRPP)
set(CMAKE_COLOR_MAKEFILE ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_C_FLAGS "-std=c99")
set(CMAKE_EXE_LINKER_FLAGS -pthread)
include_directories(${PROJECT_SOURCE_DIR}/kit)
include_directories(${PROJECT_SOURCE_DIR}/node)
include_directories(${PROJECT_SOURCE_DIR}/protocol)
include_directories(${PROJECT_SOURCE_DIR}/src)
include_directories(${PROJECT_SOURCE_DIR}/icplib/include)
include_directories(${PROJECT_SOURCE_DIR}/icplib/lib/libportseq)
include_directories(${PROJECT_SOURCE_DIR}/icplib/driver/switchdriver)
link_directories(${PROJECT_BINARY_DIR}/libs)
link_directories(${PROJECT_SOURCE_DIR}/icplib)
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/libs)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/elf)
add_subdirectory(kit)
add_subdirectory(protocol)
add_subdirectory(node)
add_subdirectory(src)