2022-11-07 06:21:24 +00:00
|
|
|
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)
|
|
|
|
|
2022-11-08 02:37:52 +00:00
|
|
|
INCLUDE_DIRECTORIES(./include ./src ../libs/include)
|
2022-11-07 06:21:24 +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)
|
|
|
|
|
|
|
|
add_library(haywire STATIC ${HW_SRC} ${HW_HEADS})
|
|
|
|
target_link_libraries (haywire -luv -pthread)
|
|
|
|
|
|
|
|
|