aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/src/CMakeLists.txt
blob: 69b76906d6e911e30f689d4ff8412b2b5810b591 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                     
                                                                      
                                                         

                                             
cmake_minimum_required(VERSION 3.0)

project(tinyCI VERSION 0.0.1 LANGUAGES C)

if(MSVC)
    add_compile_options(/W4 /WX)
else()
    add_compile_options(-Wall -Wextra -Werror)
endif()

add_compile_definitions(_GNU_SOURCE)

add_compile_definitions(VERSION="${PROJECT_VERSION}")

add_executable(server server_main.c server.c msg.c net.c tcp_server.c)
add_executable(client client_main.c client.c msg.c net.c)

target_link_libraries(server PRIVATE pthread)