tesses.broadcast/libbroadcast/CMakeLists.txt

18 lines
573 B
CMake

cmake_minimum_required(VERSION 3.0.0)
project(broadcast)
add_library(broadcast SHARED source/broadcast.c)
target_include_directories(broadcast PUBLIC include)
add_library(broadcaststatic STATIC source/broadcast.c) #https://stackoverflow.com/a/2152157
target_include_directories(broadcaststatic PUBLIC include)
add_executable(broadcastclient broadcastclient.c source/broadcast.c)
target_include_directories(broadcastclient PUBLIC include)
add_executable(broadcastserver broadcastserver.c source/broadcast.c)
target_include_directories(broadcastserver PUBLIC include)