mirror of
https://github.com/Gongxh0901/kunpolibrary
synced 2025-12-05 20:29:10 +00:00
仓库中添加内置的demo
This commit is contained in:
19
demo/native/engine/harmonyos-next/CMakeLists.txt
Normal file
19
demo/native/engine/harmonyos-next/CMakeLists.txt
Normal file
@@ -0,0 +1,19 @@
|
||||
# the minimum version of CMake.
|
||||
|
||||
cmake_minimum_required(VERSION 3.8)
|
||||
set(CC_LIB_NAME cocos)
|
||||
set(CC_PROJ_SOURCES)
|
||||
set(CC_COMMON_SOURCES)
|
||||
set(CC_ALL_SOURCES)
|
||||
|
||||
option(APP_NAME "Project Name" "test-cases")
|
||||
project(${APP_NAME} CXX)
|
||||
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g -ggdb -Werror=return-type")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")
|
||||
|
||||
include(${COMMON_DIR}/CMakeLists.txt)
|
||||
|
||||
cc_openharmony_before_target(${CC_LIB_NAME})
|
||||
add_library(${CC_LIB_NAME} SHARED ${CC_ALL_SOURCES})
|
||||
cc_openharmony_after_target(${CC_LIB_NAME})
|
||||
Reference in New Issue
Block a user