Cmake code:
# Build the module
# Written by kemm & lt; [email protected] & gt; 2017
#
# This is the module CMakeLists. TXT
# get the module name
String (REGEX REPLACE ". */"(. *) \ " "1" CURRENT_MODULE_NAME ${CMAKE_CURRENT_SOURCE_DIR})
# include the module cmake. TXT
Include (${PROJECT_SOURCE_DIR}/PRJ/${PPOJECT_TYPE}/${BOARD_TYPE}/${LINECARD_TYPE}/${CURRENT_MODULE_NAME}/cmake. TXT)
# config data SRC
The file (GLOB configdata_src "./*. CPP ")
The file (GLOB thd_pon_dao_rpc_src "./thd_pon_dao_rpc/*. CPP ")
# module SRC
The set (${CURRENT_MODULE_NAME} _SRC
The ${configdata_src}
The ${thd_pon_dao_rpc_src}
)
# module lib
Add_library (${CURRENT_MODULE_NAME} ${${CURRENT_MODULE_NAME} _SRC})
CodePudding user response:
Depend. The make line 4 should begin for the TAB keyCodePudding user response:
Where there is a dend. Make, there is no problem I incremental compilation, all will have this problem,