-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
32 lines (21 loc) · 891 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
28
29
30
31
cmake_minimum_required(VERSION 3.16.3)
project(bp_dill)
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -s")
include_directories(include local/include
models
deps/dlg/include)
link_directories(local/lib)
set(SRCS src/bp.c src/io_util.c src/logging.c deps/dlg/src/dlg/dlg.c)
set(LIBS libdill.a)
add_compile_options(-Wall -fPIC)
add_compile_definitions(DLG_LOG_LEVEL=dlg_level_info)
add_executable(waterflow src/waterflow.c ${SRCS})
target_link_libraries(waterflow ${LIBS})
add_executable(pingpong src/pingpong.c ${SRCS})
target_link_libraries(pingpong ${LIBS})
add_executable(button_blink src/button_blink.c ${SRCS})
target_link_libraries(button_blink ${LIBS})
add_executable(pelican src/pelican.c ${SRCS})
target_link_libraries(pelican ${LIBS})
add_executable(tictactoe src/tictactoe.c ${SRCS})
target_link_libraries(tictactoe ${LIBS})