support parallel make

This commit is contained in:
yuansx 2018-12-09 08:14:42 +00:00
parent ad1575baab
commit 8a8145e63f
3 changed files with 5 additions and 1 deletions

@ -1 +1 @@
Subproject commit 4c74f4912c807d6155e354cc10d462ed3ee66a84
Subproject commit fb4aecff02f143f322272d5597e428c93bdaa6fb

View File

@ -10,3 +10,5 @@ link_libraries(tarsutil pthread)
aux_source_directory(. DIR_SRCS)
add_executable(${TARGETNAME} ${DIR_SRCS})
add_dependencies(${TARGETNAME} TUP-TARS)

View File

@ -21,6 +21,7 @@ foreach (FILE ${SRC_LEX_LIST})
OUTPUT ${CP_SOURCE_CPP_DIR}/${LEX_CPP}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMAND cp -rf ${LEX_CPP} ${CP_SOURCE_CPP_DIR}
DEPENDS ${LEX_CPP}
COMMENT "cp -rf ${LEX_CPP} ${CP_SOURCE_CPP_DIR}")
#
@ -49,6 +50,7 @@ foreach (FILE ${SRC_YACC_LIST})
OUTPUT ${CP_SOURCE_H_DIR}/${YACC_H}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMAND cp -rf ${YACC_H} ${YACC_CPP} ${CP_SOURCE_H_DIR}
DEPENDS ${YACC_H}
COMMENT "cp -rf ${YACC_H} ${YACC_CPP} ${CP_SOURCE_H_DIR}")
#