2020-10-21 10:12:00 +08:00
|
|
|
set(target_name cocostudio)
|
2020-10-17 16:32:16 +08:00
|
|
|
|
2024-02-03 10:08:22 +08:00
|
|
|
FILE(GLOB_RECURSE CCS_SOURCES *.h;*.cpp;./**/*.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)
|
2024-02-20 05:37:12 +08:00
|
|
|
target_compile_definitions(${target_name} PRIVATE CCS_DLLEXPORT INTERFACE CCS_DLLIMPORT)
|
2020-10-17 16:32:16 +08:00
|
|
|
endif()
|
|
|
|
|
2024-02-03 10:08:22 +08:00
|
|
|
target_include_directories(${target_name} PUBLIC src)
|
2020-10-21 10:12:00 +08:00
|
|
|
|
2022-08-11 15:41:10 +08:00
|
|
|
setup_ax_extension_config(${target_name})
|