forked from igortern/bbf-wt451-polt-sim
-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
62 lines (53 loc) · 1.74 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Top level CMakeLists.txt defining the build project for the BCM68620 products
#====
# Indicate the minimum version of CMake required
#====
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
#====
# Identify where to find the modules
#====
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
#====
# Set a project version. Really doesn't matter what we use here, but it could be release related if we want
#====
set(PROJECT_VERSION 3.0.0)
#====
# Define the project we are building for
#====
project(bcm686xx
VERSION ${PROJECT_VERSION}
LANGUAGES CXX C ASM)
#====
# Set global variables used here
#====
set(SOURCE_TOP ${CMAKE_CURRENT_SOURCE_DIR})
set(BUILD_TOP ${CMAKE_CURRENT_BINARY_DIR})
set(CMAKE_INSTALL_PREFIX ${BUILD_TOP})
set(OPEN_SOURCE_SIM y CACHE BOOL "Open Source Simulation Build" FORCE)
#====
# Add the CMake modules we use here
#====
include(utils)
include(common_definitions)
include(build_macros)
include(protoc_codegen_macros) # Macros supporting code generation from .proto and building the generation files
include(optional_macros) # Include any optional macros used for internal testing
include(third_party) # Macros for downloading & building third-party libraries
#====
# Add the top level subdirectories we need to add
#====
bcm_add_subdirectory(os_abstraction)
bcm_add_subdirectory(config)
bcm_add_subdirectory(utils)
bcm_add_subdirectory(daemon)
bcm_add_subdirectory(cli)
bcm_add_subdirectory(dev_log)
bcm_add_subdirectory(third_party)
bcm_add_subdirectory(tr451_vomci_polt)
bcm_add_subdirectory(netconf_server)
#====
# Post processing support to make the custom properties transitive
#====
include(post_process)
bcm_flatten_transitive_dependencies()
add_custom_target(github_install_include)