forked from pimoroni/picovision
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
36 lines (31 loc) · 932 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
cmake_minimum_required(VERSION 3.9)
project(PicoVision)
install(FILES
${CMAKE_CURRENT_LIST_DIR}/examples/main.py
${CMAKE_CURRENT_LIST_DIR}/examples/rainbow_wheel.py
${CMAKE_CURRENT_LIST_DIR}/examples/screenmodes.py
${CMAKE_CURRENT_LIST_DIR}/examples/scrollgroups.py
${CMAKE_CURRENT_LIST_DIR}/examples/starfield_rainbow.py
${CMAKE_CURRENT_LIST_DIR}/examples/starfield.py
${CMAKE_CURRENT_LIST_DIR}/examples/vector_clock_smooth.py
${CMAKE_CURRENT_LIST_DIR}/examples/vector_clock.py
${CMAKE_CURRENT_LIST_DIR}/examples/toaster.png
DESTINATION .
)
set(examples
alert
bouncing_logo
floppy_birb
pride
sneks_and_ladders
)
foreach(example IN LISTS examples)
install(DIRECTORY
${CMAKE_CURRENT_LIST_DIR}/examples/${example}/
DESTINATION ${example}
)
endforeach()
# setup release packages
set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY OFF)
set(CPACK_GENERATOR "ZIP")
include(CPack)