2018-06-13 21:51:30 +02:00
|
|
|
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
|
2018-06-13 23:06:45 +02:00
|
|
|
src/sk6812.c
|
2018-06-13 21:51:30 +02:00
|
|
|
src/fader.h
|
|
|
|
src/logger.h
|
|
|
|
src/udpproto.h
|
|
|
|
src/utils.h
|
2018-06-13 23:06:45 +02:00
|
|
|
src/sk6812.h
|
2018-06-13 21:51:30 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
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)
|