mirror of
https://gitlab.com/prpl-foundation/prplmesh/prplMesh.git
synced 2025-12-20 01:21:22 +08:00
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>
20 lines
625 B
CMake
20 lines
625 B
CMake
set(ELPP_LIB_NAME "mapf::elpp")
|
|
set(ELPP_INCLUDE_DIRS ${CMAKE_SOURCE_DIR}/framework/external/easylogging)
|
|
set(ELPP_LIBRARY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libelpp.so.1.4.0)
|
|
|
|
add_definitions(-DELPP_THREAD_SAFE)
|
|
add_definitions(-DELPP_FORCE_USE_STD_THREAD)
|
|
add_definitions(-DELPP_NO_DEFAULT_LOG_FILE)
|
|
add_library(${ELPP_LIB_NAME} UNKNOWN IMPORTED)
|
|
|
|
# Include directory
|
|
set_target_properties(${ELPP_LIB_NAME} PROPERTIES
|
|
INTERFACE_INCLUDE_DIRECTORIES "${ELPP_INCLUDE_DIRS}"
|
|
)
|
|
|
|
# Library
|
|
set_target_properties(${ELPP_LIB_NAME} PROPERTIES
|
|
IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
|
|
IMPORTED_LOCATION "${ELPP_LIBRARY}"
|
|
)
|