vcpe/srcs/httpserver/CMakeLists.txt

40 lines
885 B
CMake
Raw Normal View History

CMAKE_MINIMUM_REQUIRED(VERSION 3.10 FATAL_ERROR)
# ----------------------------------------
# Haywire
# ----------------------------------------
2022-12-02 02:51:51 +00:00
PROJECT(haywire C)
#set(CMAKE_BUILD_TYPE RelWithDebInfo)
2022-12-02 02:51:51 +00:00
ADD_DEFINITIONS(-std=gnu99)
#add_definitions(-mavx)
2022-12-02 02:51:51 +00:00
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)
2022-11-08 02:37:52 +00:00
INCLUDE_DIRECTORIES(./include ./src ../libs/include)
2022-12-02 02:51:51 +00:00
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)
2022-12-02 02:51:51 +00:00
ADD_LIBRARY(haywire STATIC ${HW_SRC} ${HW_HEADS})
TARGET_LINK_LIBRARIES(haywire -luv -pthread)