vcpe/srcs/httpserver/CMakeLists.txt

40 lines
871 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)