2020-10-21 10:12:00 +08:00
|
|
|
set(target_name cocostudio)
|
2020-10-17 16:32:16 +08:00
|
|
|
|
2020-10-21 10:12:00 +08:00
|
|
|
FILE(GLOB_RECURSE CCS_SOURCES ./*.h;./*.cpp)
|
2020-10-17 16:32:16 +08:00
|
|
|
|
2020-10-21 10:12:00 +08:00
|
|
|
add_library(${target_name} ${CCS_SOURCES})
|
2020-10-17 16:32:16 +08:00
|
|
|
|
|
|
|
if(BUILD_SHARED_LIBS)
|
|
|
|
target_compile_definitions(${target_name}
|
|
|
|
PRIVATE _USRCCS_DLL=1
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
target_compile_definitions(${target_name}
|
2022-07-08 07:17:41 +08:00
|
|
|
PUBLIC AX_STATIC=1
|
2020-10-17 16:32:16 +08:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2020-10-21 10:57:37 +08:00
|
|
|
target_include_directories(${target_name} PUBLIC ${CMAKE_CURRENT_LIST_DIR})
|
2020-10-21 10:12:00 +08:00
|
|
|
|
2020-10-17 16:32:16 +08:00
|
|
|
setup_cocos_extension_config(${target_name})
|