-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
41 lines (32 loc) · 1.08 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
39
40
41
cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
project(understand_rebels)
# cxx compile standard
set(CMAKE_CXX_STANDARD 17)
set(CAME_CXX_STANDARD_REQUIRED ON)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
# project version setup
set(REBELS_MAJOR_VERSION "0")
set(REBELS_MINOR_VERSION "1")
# debug info
message(STATUS "==================================================")
message(STATUS "rebels release version: ${REBELS_MAJOR_VERSION}.${REBELS_MINOR_VERSION}")
message(STATUS "==================================================")
# --------------------------------------
# core third_partylibraries
# --------------------------------------
# load third cmake module
if(EXISTS ${CMAKE_SOURCE_DIR}/cmake/api.cmake)
include(${CMAKE_SOURCE_DIR}/cmake/api.cmake)
else()
message(FATAL_ERROR "load cmake module failed,build process interrupted.")
endif()
# download third package
download_fmt()
download_spdlog()
download_eventbus()
# --------------------------------
# custom library
# ---------------------------------
add_subdirectory(rebels)
# add_subdirectory(examples)
add_subdirectory(test)