-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
40 lines (27 loc) · 960 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
32
33
34
35
36
37
38
39
40
cmake_minimum_required(VERSION 3.1)
project(BizarroHomerAll)
add_compile_options(-Wno-psabi)
# Initialize directories, files, etc.
install(CODE "execute_process(COMMAND sudo ./scripts/init_workspace.sh)")
#
# Built thirdparty libraries.
#
set(BH_THIRDPARTY_DIR "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty")
# fmt
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/fmt" EXCLUDE_FROM_ALL)
# Phoenix
add_subdirectory("${BH_THIRDPARTY_DIR}/Phoenix")
# rpi_ws281x
add_subdirectory("${BH_THIRDPARTY_DIR}/rpi_ws281x" EXCLUDE_FROM_ALL)
include_directories("BizarroHomerMain" PUBLIC "${BH_THIRDPARTY_DIR}/rpi_ws281x")
#
# Build stuff.
#
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/main")
#
# Install files.
#
# Install dashboard site.
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/dashboard" DESTINATION "/var/frc1511/BizarroHomer")
# Install music files.
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/music" DESTINATION "/var/frc1511/BizarroHomer")