1
0
mirror of https://github.com/fumiama/simple-http-server.git synced 2026-06-10 13:00:28 +08:00
This commit is contained in:
源文雨
2021-06-07 14:37:29 +08:00
parent e60a5a8780
commit 7c49fd7df3
4 changed files with 593 additions and 0 deletions

18
CMakeLists.txt Normal file
View File

@@ -0,0 +1,18 @@
cmake_minimum_required(VERSION 2.6)
project(simple-http-server C)
SET(CMAKE_BUILD_TYPE "Release")
add_definitions(-DLISTEN_ON_IPV6)
IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
add_definitions("-DCPUBIT64")
ELSE()
add_definitions("-DCPUBIT32")
ENDIF()
include_directories("/usr/local/include")
link_directories("/usr/local/lib")
add_executable(simple-http-server server.c)
target_link_libraries(simple-http-server pthread)
INSTALL(TARGETS simple-http-server RUNTIME DESTINATION bin)