1
0
mirror of https://github.com/fumiama/simple-kanban.git synced 2026-06-05 00:10:29 +08:00
Files
simple-kanban/CMakeLists.txt
源文雨 77b410351c fix cmake
2023-11-08 18:14:26 +09:00

28 lines
774 B
CMake

cmake_minimum_required(VERSION 2.6)
project(simple-kanban C)
SET(CMAKE_BUILD_TYPE "Release")
include(TestBigEndian)
test_big_endian(isBigEndian)
if (${isBigEndian})
add_definitions(-DWORDS_BIGENDIAN)
endif()
add_definitions(-DLISTEN_ON_IPV6)
include_directories("/usr/local/include")
link_directories("/usr/local/lib")
add_executable(simple-kanban server.c)
add_executable(simple-kanban-client client.c)
add_executable(cfgwriter cfgwriter.c)
find_library(SPB_STATIC_LIB libspb.a)
target_link_libraries(simple-kanban pthread ${SPB_STATIC_LIB})
target_link_libraries(simple-kanban-client pthread)
target_link_libraries(cfgwriter ${SPB_STATIC_LIB})
INSTALL(TARGETS simple-kanban RUNTIME DESTINATION bin)
INSTALL(TARGETS simple-kanban-client RUNTIME DESTINATION bin)