mirror of
https://github.com/qicosmos/rest_rpc.git
synced 2026-08-29 16:40:48 +08:00
19 lines
438 B
CMake
19 lines
438 B
CMake
cmake_minimum_required(VERSION 3.1)
|
|
project(rest_rpc)
|
|
|
|
include_directories(include)
|
|
|
|
#the thread library of the system.
|
|
find_package(Threads REQUIRED)
|
|
|
|
include(cmake/build.cmake)
|
|
include(cmake/develop.cmake)
|
|
|
|
message(STATUS "---->: " ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
if (BUILD_UNIT_TESTS)
|
|
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/tests)
|
|
endif ()
|
|
if (BUILD_EXAMPLES)
|
|
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/examples)
|
|
endif () |