33 lines
924 B
CMake
33 lines
924 B
CMake
# for calrt demo || example porpuse
|
|
|
|
cmake_minimum_required(VERSION 3.15)
|
|
project(calrt VERSION 1.0)
|
|
|
|
# C++ standard
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
option(BUILD_CLI "Building cli" OFF)
|
|
option(BUILD_PYCALRT "Building python rt lib" OFF)
|
|
option(BUILD_EXAMPLE "Building exmaple" OFF)
|
|
option(BUILD_FULL_PACK "Building full RT functions, including cli, rt lib and example" OFF)
|
|
option(BUILD_CORE_ONLY "Building rt lib only" OFF)
|
|
option(BUILD_SHARED_LIBS "Building shared host rt lib" ON)
|
|
option(BUILD_RELEASE "Building release package" OFF)
|
|
|
|
if(BUILD_FULL_PACK)
|
|
if(BUILD_EXAMPLE)
|
|
add_subdirectory(example)
|
|
endif(BUILD_EXAMPLE)
|
|
|
|
add_subdirectory(hostrt)
|
|
add_subdirectory(calrtcli)
|
|
endif(BUILD_FULL_PACK)
|
|
|
|
if(BUILD_CORE_ONLY OR BUILD_RELEASE)
|
|
add_subdirectory(hostrt)
|
|
endif(BUILD_CORE_ONLY OR BUILD_RELEASE)
|
|
|
|
if(BUILD_CLI)
|
|
add_subdirectory(calrtcli)
|
|
endif(BUILD_CLI) |