mirror of
https://gitlab.com/prpl-foundation/prplmesh/prplMesh.git
synced 2025-12-20 01:21:22 +08:00
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:
committed by
arnout
parent
5fd9f2cbab
commit
57d2e53ab9
4
CMakeLists.txt
Normal file
4
CMakeLists.txt
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
cmake_minimum_required(VERSION 3.0)
|
||||||
|
project (prplmesh C CXX)
|
||||||
|
|
||||||
|
add_subdirectory(framework)
|
||||||
@@ -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)
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user