diff --git a/.gitignore b/.gitignore index 9eca6c8..4a432b5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.a *.o +/build diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..f45febc --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,13 @@ +cmake_minimum_required(VERSION 3.25) +project(dectalkmini) + +file(GLOB_RECURSE SOURCES src/**.c) + +add_library(ppr STATIC ${SOURCES}) +target_include_directories(ppr PUBLIC include) + +if(CMAKE_SYSTEM_NAME STREQUAL "Windows") + target_link_libraries(ppr PUBLIC ws2_32) +else() + target_link_libraries(ppr PUBLIC pthread) +endif()