33 lines
552 B
CMake
33 lines
552 B
CMake
cmake_minimum_required(VERSION 3.6)
|
|
project(smol)
|
|
set(CMAKE_C_FLAGS "-Wall")
|
|
|
|
add_executable(
|
|
smol
|
|
src/smol.c
|
|
)
|
|
target_link_libraries(smol ssl crypto)
|
|
|
|
add_executable(
|
|
smol-pthreads
|
|
src/smol-pthreads.c
|
|
)
|
|
target_link_libraries(smol-pthreads ssl crypto)
|
|
|
|
add_executable(
|
|
smol-http
|
|
src/smol-http.c
|
|
)
|
|
|
|
add_executable(
|
|
smol-http-pthreads
|
|
src/smol-http-pthreads.c
|
|
)
|
|
|
|
add_executable(
|
|
ws
|
|
src/ws.c
|
|
)
|
|
target_link_libraries(ws ssl crypto)
|
|
|
|
install(TARGETS smol smol-pthreads smol-http smol-http-pthreads ws DESTINATION bin) |