cmake: add top-level CMakeLists.txt for framework

For proper integration with build systems (OpenWrt and RDK-B) it is much
easier if we can build all of prplMesh in a single go with cmake,
without need for maptools.py to build all components.

Add a top-level CMakeLists.txt. For the time being, it only builds the
framework. The helper files move from framework/cmake to the top level.

Update maptools build.py to build the top-level instead of the framework
component.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
Arnout Vandecappelle (Essensium/Mind)
2019-11-08 18:45:57 +01:00
committed by arnout
parent 5fd9f2cbab
commit 57d2e53ab9
10 changed files with 6 additions and 2 deletions

4
CMakeLists.txt Normal file
View File

@@ -0,0 +1,4 @@
cmake_minimum_required(VERSION 3.0)
project (prplmesh C CXX)
add_subdirectory(framework)

View File

@@ -1,5 +1,5 @@
set(ELPP_LIB_NAME "mapf::elpp") set(ELPP_LIB_NAME "mapf::elpp")
set(ELPP_INCLUDE_DIRS ${CMAKE_SOURCE_DIR}/external/easylogging) set(ELPP_INCLUDE_DIRS ${CMAKE_SOURCE_DIR}/framework/external/easylogging)
set(ELPP_LIBRARY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libelpp.so.1.4.0) set(ELPP_LIBRARY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libelpp.so.1.4.0)
add_definitions(-DELPP_THREAD_SAFE) add_definitions(-DELPP_THREAD_SAFE)

View File

@@ -9,7 +9,7 @@ import multiprocessing
logger = logging.getLogger("build") logger = logging.getLogger("build")
build_targets=['prepare', 'clean', 'distclean', 'make'] build_targets=['prepare', 'clean', 'distclean', 'make']
map_modules=['framework', 'common', 'controller', 'agent'] map_modules=['.', 'common', 'controller', 'agent']
dep_modules=['nng', 'safeclib', 'dwpal', 'hostapd', 'wpa_supplicant'] dep_modules=['nng', 'safeclib', 'dwpal', 'hostapd', 'wpa_supplicant']
# base builder class # base builder class