sk6812d/CMakeLists.txt

39 lines
641 B
CMake

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/sk6812.c
src/fader.h
src/logger.h
src/udpproto.h
src/utils.h
src/sk6812.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)