wangzhengquan
2020-12-30 5eced9fa401e05226309ec9682df4310b18683c3
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.5)
 
# set the project name and version
project(B_BUS VERSION 3.0)
 
# specify the C++ standard
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)
 
 
 
# add the MathFunctions library
# if(USE_MYMATH)
#  add_subdirectory(MathFunctions)
#  list(APPEND EXTRA_LIBS MathFunctions)
# endif()
 
# list(APPEND EXTRA_INCLUDES "${PROJECT_SOURCE_DIR}/include/usgcommon")
# list(APPEND EXTRA_LIBS lib/usgcommon)
 
add_subdirectory(${PROJECT_SOURCE_DIR}/src)
# list(APPEND EXTRA_LIBS shm_queue)
 
 
# target_link_libraries(B_BUS PUBLIC ${EXTRA_LIBS})
 
# add the binary tree to the search path for include files
# so that we will find BusConfig.h
# target_include_directories(B_BUS PUBLIC
#                            "${PROJECT_BINARY_DIR}"
#                             ${EXTRA_INCLUDES}
#                            )
 
# add the executable
# add_executable(B_BUS B_BUS.cxx)
# add the install targets
# install(TARGETS B_BUS DESTINATION bin)
# install(FILES "${PROJECT_BINARY_DIR}/BusConfig.h"
#   DESTINATION include
#   )