diff --git a/.gitignore b/.gitignore index b753618..592eb31 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,16 @@ *.exe *.out *.app + +# Cmake +CMakeLists.txt.user +CMakeCache.txt +CMakeFiles +CMakeScripts +Testing +Makefile +cmake_install.cmake +install_manifest.txt +compile_commands.json +CTestTestfile.cmake +_deps diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..a023794 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,47 @@ +cmake_minimum_required(VERSION 3.14) + +project(ESTA VERSION 1.0.0 LANGUAGES CXX) + +set(DEFAULT_BUILD_TYPE "Release") +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + +set(SOURCE_FILES + acn/acn.h + acn/appliance.cpp + acn/appliance.h + acn/component.h + acn/dmp.cpp + acn/dmp.h + acn/pdu.cpp + acn/pdu.h + acn/rlp-tcp.cpp + acn/rlp-tcp.h + acn/rlp-udp.cpp + acn/rlp-udp.h + acn/rlp.cpp + acn/rlp.h + acn/sdt-udp.cpp + acn/sdt-udp.h + acn/sdt.cpp + acn/sdt.h + dmx/universe.cpp + dmx/universe.h + sacn/data.cpp + sacn/data.h + sacn/extended.h + sacn/receiver.cpp + sacn/receiver.h + sacn/sacn.h + sacn/universe.cpp + sacn/universe.h + uuid/uuid.cpp + uuid/uuid.h +) + +add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES}) + +set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${PROJECT_VERSION}) +set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION 1) + +target_compile_definitions(${PROJECT_NAME} PRIVATE ESTA_LIBRARY)