vcpe/srcs/httpserver/CMakeLists.txt

40 lines
891 B
CMake

CMAKE_MINIMUM_REQUIRED(VERSION 3.10 FATAL_ERROR)
# ----------------------------------------
# Haywire
# ----------------------------------------
project(haywire C)
#set(CMAKE_BUILD_TYPE RelWithDebInfo)
add_definitions(-std=gnu99)
#add_definitions(-mavx)
add_definitions(-msse4.1)
add_definitions(-pedantic)
add_definitions(-O3)
add_definitions(-Wall)
add_definitions(-Wextra)
add_definitions(-Wcast-align)
add_definitions(-w)
if (UNIX)
add_definitions(-DUNIX)
endif (UNIX)
INCLUDE_DIRECTORIES(./include ./src ../libs/include)
file(GLOB_RECURSE HW_HEADS
./src/haywire/*.h
./src/haywire/configuration/*.h)
AUX_SOURCE_DIRECTORY(src/haywire HW_SRC)
AUX_SOURCE_DIRECTORY(src/haywire/configuration HW_SRC)
INCLUDE_DIRECTORIES(. ./include)
#find_package(Threads REQUIRED)
add_library(haywire STATIC ${HW_SRC} ${HW_HEADS})
target_link_libraries(haywire -luv -pthread)