Initial import from ws2801d repository
This commit is contained in:
commit
f033119aa8
14 changed files with 778 additions and 0 deletions
38
CMakeLists.txt
Normal file
38
CMakeLists.txt
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
cmake_minimum_required (VERSION 3.2)
|
||||
project (sk6812d VERSION 0.1 LANGUAGES C)
|
||||
|
||||
set(CMAKE_C_STANDARD 99)
|
||||
set(CMAKE_CXX_FLAGS "-Wall -pedantic")
|
||||
|
||||
find_package(Threads REQUIRED)
|
||||
|
||||
# put all .cpp and .h files into the sources variable
|
||||
set(sources
|
||||
src/fader.c
|
||||
src/logger.c
|
||||
src/main.c
|
||||
src/udpproto.c
|
||||
src/utils.c
|
||||
src/ws2801.c
|
||||
src/fader.h
|
||||
src/logger.h
|
||||
src/udpproto.h
|
||||
src/utils.h
|
||||
src/ws2801.h
|
||||
)
|
||||
|
||||
include_directories(
|
||||
${CMAKE_PROJECT_NAME}
|
||||
)
|
||||
|
||||
add_executable(
|
||||
${CMAKE_PROJECT_NAME}
|
||||
${sources}
|
||||
)
|
||||
|
||||
target_link_libraries(
|
||||
${CMAKE_PROJECT_NAME}
|
||||
${CMAKE_THREAD_LIBS_INIT}
|
||||
)
|
||||
|
||||
#configure_file("lua/demobot.lua" "lua/demobot.lua" COPYONLY)
|
||||
Loading…
Add table
Add a link
Reference in a new issue