colla/CMakeLists.txt
alessandrobason bb6f3f967c added:
* threads support with mutexes
2021-10-27 11:45:27 +01:00

23 lines
No EOL
493 B
CMake

add_library(colla STATIC
socket.c
tracelog.c
http.c
strstream.c
str.c
coroutine.c
os.c
fs.c
file.c
dir.c
dirwatch.c
cthreads.c
)
if(MSVC)
target_link_libraries(colla ws2_32.lib)
target_compile_options(colla PRIVATE /W4)
else()
target_link_libraries(colla pthread)
target_compile_options(colla PRIVATE -Wall -Wextra -Wpedantic)
target_compile_definitions(colla PUBLIC _DEFAULT_SOURCE)
endif()