-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
58 lines (49 loc) · 1.25 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
51
52
53
54
55
56
57
58
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
# Only Linux allows raw SPI access so far
find_path(LINUX_HEADERS_INCLUDE_DIR linux/spi/spidev.h)
if(NOT LINUX_HEADERS_INCLUDE_DIR)
return()
endif()
if(APPLE OR EMSCRIPTEN OR WIN32 OR BSD)
return()
endif()
if(NOT TARGET score_lib_base)
include("${SCORE_SOURCE_DIR}/cmake/ScoreExternalAddon.cmake")
endif()
project(score_addon_led LANGUAGES CXX)
# General initialization
score_common_setup()
# Creation of the library
add_library(score_addon_led
Led/Device.cpp
Led/Device.hpp
Led/ProtocolFactory.cpp
Led/ProtocolFactory.hpp
Led/ProtocolSettingsWidget.cpp
Led/ProtocolSettingsWidget.hpp
Led/SpecificSettings.hpp
Led/SpecificSettingsSerialization.cpp
score_addon_led.hpp
score_addon_led.cpp
)
# Link
target_link_libraries(score_addon_led PUBLIC score_plugin_engine)
# Target-specific options
setup_score_plugin(score_addon_led)
# avnd_score_plugin_init(
# BASE_TARGET score_addon_ledfx
# )
#
# avnd_score_plugin_add(
# BASE_TARGET score_addon_ledfx
# SOURCES
# LedProcesses/LedFX.hpp
# TARGET ledfx
# MAIN_CLASS LedFX
# NAMESPACE Led
# )
# avnd_score_plugin_finalize(
# BASE_TARGET score_addon_ledfx
# PLUGIN_VERSION 1
# PLUGIN_UUID "706e49b7-6e22-4a4d-9f91-3c2a7563c072"
# )