wangzhengquan
2021-01-19 7ec14eb603babeca5fc582138f4539af7a445702
CMakeLists.txt
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.5)
# set the project name and version
project(B_BUS VERSION 3.0)
project(B_BUS VERSION 2.2)
# specify the C++ standard
set(CMAKE_CXX_STANDARD 11)
@@ -17,8 +17,13 @@
list(APPEND EXTRA_INCLUDES "${PROJECT_SOURCE_DIR}/include/usgcommon")
list(APPEND EXTRA_LIBS ${PROJECT_SOURCE_DIR}/lib/libusgcommon.a pthread)
list(APPEND EXTRA_LIBS ${PROJECT_SOURCE_DIR}/lib/libusgcommon.a pthread rt)
add_subdirectory(${PROJECT_SOURCE_DIR}/src)
add_subdirectory(${PROJECT_SOURCE_DIR}/test)
add_subdirectory(${PROJECT_SOURCE_DIR}/test_net_socket)
add_subdirectory(${PROJECT_SOURCE_DIR}/test_net_socket)
# build api doc
if (CMAKE_BUILD_TYPE MATCHES "^[Rr]elease")
    # build the docs
    add_subdirectory(${PROJECT_SOURCE_DIR}/doc)
endif()