1
0
mirror of https://github.com/fumiama/simple-kanban.git synced 2026-06-13 13:40:37 +08:00

增加大小端检测

This commit is contained in:
fumiama
2021-05-07 21:22:24 +08:00
parent 636540bebb
commit 4496e78dfd
4 changed files with 27 additions and 18 deletions

View File

@@ -1,13 +1,13 @@
project(simple-kanban)
add_executable(simple-kanban server.c) # 生成可执行文件
add_executable(simple-kanban-client client.c) # 生成可执行文件
target_link_libraries( # 目标库
simple-kanban
# 目标库需要链接的库
pthread)
target_link_libraries( # 目标库
simple-kanban-client
# 目标库需要链接的库
pthread)
include(TestBigEndian)
test_big_endian(isBigEndian)
if (${isBigEndian})
set ( WORDS_BIGENDIAN 1 )
endif()
add_executable(simple-kanban server.c)
add_executable(simple-kanban-client client.c)
target_link_libraries(simple-kanban pthread)
target_link_libraries(simple-kanban-client pthread)