mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:22:43 +08:00
18 lines
556 B
CMake
18 lines
556 B
CMake
macro(cc_openharmony_before_target target_name)
|
|
list(APPEND CC_COMMON_SOURCES
|
|
${COCOS_X_PATH}/cocos/platform/openharmony/napi/NapiInit.cpp
|
|
)
|
|
set(CC_ALL_SOURCES ${CC_COMMON_SOURCES} ${CC_PROJ_SOURCES})
|
|
cc_common_before_target(${target_name})
|
|
endmacro()
|
|
|
|
macro(cc_openharmony_after_target target_name)
|
|
|
|
target_link_libraries(${target_name}
|
|
${ENGINE_NAME}
|
|
)
|
|
target_include_directories(${target_name} PRIVATE
|
|
${CC_PROJECT_DIR}/../common/Classes
|
|
)
|
|
cc_common_after_target(${target_name})
|
|
endmacro() |