cmake
This commit is contained in:
parent
4e0d732f09
commit
1eb90f4df8
2 changed files with 14 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
|||
*.a
|
||||
*.o
|
||||
/build
|
||||
|
|
|
|||
13
CMakeLists.txt
Normal file
13
CMakeLists.txt
Normal file
|
|
@ -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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue