forked from romange/helio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
executable file
·38 lines (29 loc) · 1.16 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
cmake_minimum_required(VERSION 3.4)
set(PACKAGE_NAME "helio")
set(PROJECT_CONTACT [email protected])
project(${PACKAGE_NAME} C CXX)
enable_testing()
get_directory_property(PARENT_PROJ_NAME PARENT_DIRECTORY)
Message(STATUS "PROJECT_BINARY_DIR ${PROJECT_BINARY_DIR} GENERATOR ${CMAKE_GENERATOR}")
Message(STATUS "PROJECT_SOURCE_DIR ${PROJECT_SOURCE_DIR} CMAKE_SOURCE_DIR ${CMAKE_SOURCE_DIR}")
option (BUILD_DOCS "Generate documentation " ON)
option (BUILD_SHARED_LIBS "Build shared libraries" OFF)
option (USE_MOLD "whether to use mold linker" OFF)
option (USE_FB2 "whether to use fibers2 library" OFF)
set (HELIO_MIMALLOC_OPTS "" CACHE STRING "additional mimalloc compile options")
set (HELIO_MIMALLOC_LIBNAME "libmimalloc.a" CACHE STRING "name of mimalloc library")
if (PARENT_PROJ_NAME)
Message(STATUS "PARENT_PROJ_NAME ${PARENT_PROJ_NAME}")
else()
# Define our own project
set(CMAKE_CXX_STANDARD 17)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
include(third_party)
include(internal)
endif()
add_definitions(-DUSE_FB2)
add_subdirectory(base)
add_subdirectory(io)
add_subdirectory(examples)
add_subdirectory(strings)
add_subdirectory(util)