forked from mirrors/qotd
12 lines
261 B
CMake
12 lines
261 B
CMake
cmake_minimum_required(VERSION 3.19)
|
|
project(qotd C)
|
|
|
|
message("STATIC_BUILD=${STATIC_BUILD}")
|
|
|
|
set(CMAKE_C_STANDARD 99)
|
|
|
|
add_executable(qotd main.c quote.c quote.h server.c server.h config.h)
|
|
|
|
if ( STATIC_BUILD )
|
|
target_link_libraries(qotd -static)
|
|
endif() |