1
0
mirror of https://github.com/fumiama/simple-http-server.git synced 2026-06-06 09:10:24 +08:00

Update CMakeLists.txt

This commit is contained in:
源文雨
2021-06-08 20:04:08 +08:00
committed by GitHub
parent 6149427448
commit 61c454ee4d

View File

@@ -9,10 +9,14 @@ ELSE()
add_definitions("-DCPUBIT32")
ENDIF()
#在编译选项中加入c99支持
add_compile_options(-std=c99)
message(STATUS "optional:-std=c99")
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)
INSTALL(TARGETS simple-http-server RUNTIME DESTINATION bin)