feat/support_fiber #2
@ -1,4 +1,4 @@
|
||||
cmake_minimum_required(VERSION 3.12)
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
|
||||
set(tile_VERSION_MAJOR 0)
|
||||
set(tile_VERSION_MINOR 1)
|
||||
@ -21,6 +21,11 @@ option(TILE_WITH_OPENSSL "Build with openssl" OFF)
|
||||
option(TILE_BUILD_SHARED "Build shared library" ON)
|
||||
option(TILE_BUILD_STATIC "Build static library" ON)
|
||||
|
||||
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_PROJECT_DIR)
|
||||
set(TILE_BUILD_TESTS ON)
|
||||
set(TILE_BUILD_BENCHMARKS ON)
|
||||
endif()
|
||||
|
||||
if(NOT CMAKE_BUILD_TYPE)
|
||||
set(CMAKE_BUILD_TYPE "Debug")
|
||||
endif()
|
||||
@ -54,8 +59,6 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
set(WHOLE_ARCHIVE_SUFFIX "-Wl,--no-whole-archive")
|
||||
endif()
|
||||
|
||||
find_package(Threads REQUIRED)
|
||||
|
||||
# extern int getifaddrs(struct ifaddrs **ifap); extern void freeifaddrs(struct
|
||||
# ifaddrs *ifa);
|
||||
include(CheckSymbolExists)
|
||||
@ -218,14 +221,9 @@ target_include_directories(
|
||||
target_link_libraries(
|
||||
tile
|
||||
PUBLIC # -Wl,--start-group
|
||||
nova_context
|
||||
zlib
|
||||
gflags::gflags
|
||||
glog::glog
|
||||
nova_context zlib gflags::gflags glog::glog
|
||||
# -Wl,--end-group
|
||||
libcurl
|
||||
fmt
|
||||
Threads::Threads)
|
||||
libcurl fmt)
|
||||
if((CMAKE_SYSTEM_PROCESSOR MATCHES "riscv64") OR (CMAKE_SYSTEM_PROCESSOR MATCHES
|
||||
"mips*"))
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
|
8
docker-compose.yml
Normal file
8
docker-compose.yml
Normal file
@ -0,0 +1,8 @@
|
||||
services:
|
||||
build-env:
|
||||
image: ubuntu:16.04
|
||||
restart: always
|
||||
container_name: "env"
|
||||
command: ["/bin/bash", "-c", "sleep 36000"]
|
||||
volumes:
|
||||
- ./:/workspace
|
15
third_party/zlib/CMakeLists.txt
vendored
15
third_party/zlib/CMakeLists.txt
vendored
@ -1,8 +1,15 @@
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
project(zlib VERSION 1.3.1.1 LANGUAGES C)
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
project(
|
||||
zlib
|
||||
VERSION 1.3.1.1
|
||||
LANGUAGES C)
|
||||
file(GLOB SRC_FILES "${CMAKE_CURRENT_SOURCE_DIR}/zlib/*.c")
|
||||
|
||||
add_library(zlib STATIC ${SRC_FILES})
|
||||
target_include_directories(zlib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_include_directories(zlib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/zlib)
|
||||
add_library(ZLIB::ZLIB ALIAS zlib)
|
||||
install(TARGETS zlib EXPORT zlib)
|
||||
install(
|
||||
TARGETS zlib
|
||||
EXPORT zlib
|
||||
DESTINATION lib)
|
||||
|
Loading…
x
Reference in New Issue
Block a user