axmol/extensions/cocostudio/CMakeLists.txt

20 lines
514 B
CMake
Raw Normal View History

set(target_name cocostudio)
2020-10-17 16:32:16 +08:00
FILE(GLOB_RECURSE CCS_SOURCES ./*.h;./*.cpp)
2020-10-17 16:32:16 +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()
target_include_directories(${target_name} PUBLIC ${CMAKE_CURRENT_LIST_DIR})
2020-10-17 16:32:16 +08:00
setup_cocos_extension_config(${target_name})