blob: e565d7852ecf3b7d69e55401cf1f3b27481f3570 (
plain) (
tree)
|
|
cmake_minimum_required(VERSION 3.0)
project(cimple VERSION 0.0.1 LANGUAGES C)
if(MSVC)
add_compile_options(/W4 /WX)
else()
add_compile_options(-Wall -Wextra -Werror -Wno-error=unused-parameter)
endif()
add_compile_definitions(_GNU_SOURCE)
add_compile_definitions(VERSION="${PROJECT_VERSION}")
add_executable(server server_main.c server.c
ci_queue.c
msg.c
net.c
signal.c
tcp_server.c)
add_executable(client client_main.c client.c
msg.c
net.c)
add_executable(worker worker_main.c worker.c
ci.c
file.c
git.c
msg.c
net.c
process.c
signal.c)
target_link_libraries(server PRIVATE pthread)
target_link_libraries(worker PRIVATE git2 pthread)
|