summaryrefslogtreecommitdiffstats
path: root/src/client/CMakeLists.txt
blob: b29825f1a54a6f53b115dead943ab993bd4e3b41 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
cmake_minimum_required(VERSION 3.10)

# set the project name
project(dnbd3-client
        LANGUAGES C)

# suppress -Wmultichar warnings
add_compile_options(-Wno-multichar)

# add compile option to enable enhanced BSD netdb features
add_definitions(-D_GNU_SOURCE)

add_executable(dnbd3-client ${CMAKE_CURRENT_SOURCE_DIR}/client.c)
target_link_libraries(dnbd3-client dnbd3-version dnbd3-shared)
install(TARGETS dnbd3-client RUNTIME DESTINATION bin
        COMPONENT kernel)