2022-10-30 22:52:39 +08:00
|
|
|
|
|
|
|
project(EffekseerForCocos2d-x)
|
|
|
|
|
|
|
|
if (APPLE)
|
|
|
|
|
|
|
|
add_library(EffekseerForCocos2d-x
|
|
|
|
STATIC
|
|
|
|
EffekseerForCocos2d-x.cpp
|
|
|
|
EffekseerForCocos2d-x.h
|
|
|
|
Metal/Effekseer+Metal.mm
|
|
|
|
GL/Effekseer+GL.cpp)
|
|
|
|
|
|
|
|
else()
|
|
|
|
|
|
|
|
add_library(EffekseerForCocos2d-x
|
|
|
|
STATIC
|
|
|
|
EffekseerForCocos2d-x.cpp
|
|
|
|
EffekseerForCocos2d-x.h
|
|
|
|
GL/Effekseer+GL.cpp)
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
target_include_directories(${PROJECT_NAME}
|
|
|
|
PUBLIC ../Effekseer/
|
|
|
|
PUBLIC ../EffekseerRendererCommon/
|
|
|
|
PUBLIC ../
|
|
|
|
PUBLIC ./
|
|
|
|
PRIVATE ../3rdParty/LLGI/src/)
|
|
|
|
|
|
|
|
if (APPLE)
|
|
|
|
target_include_directories(${PROJECT_NAME}
|
|
|
|
PUBLIC ../EffekseerRendererMetal/)
|
|
|
|
|
2022-11-15 14:34:18 +08:00
|
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE EffekseerRendererMetal)
|
2022-10-30 22:52:39 +08:00
|
|
|
|
|
|
|
add_dependencies(${PROJECT_NAME} EffekseerRendererMetal)
|
2022-11-01 16:02:13 +08:00
|
|
|
|
|
|
|
# add_dependencies(${PROJECT_NAME} EffekseerRendererGL)
|
2022-10-30 22:52:39 +08:00
|
|
|
else()
|
|
|
|
target_include_directories(${PROJECT_NAME}
|
|
|
|
PUBLIC ../EffekseerRendererGL/)
|
|
|
|
|
2022-11-15 14:34:18 +08:00
|
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE EffekseerRendererGL)
|
2022-10-30 22:52:39 +08:00
|
|
|
|
|
|
|
add_dependencies(${PROJECT_NAME} EffekseerRendererGL)
|
|
|
|
endif()
|
|
|
|
|
2022-11-15 14:34:18 +08:00
|
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE Effekseer)
|
2022-10-30 22:52:39 +08:00
|
|
|
|
|
|
|
add_dependencies(${PROJECT_NAME} Effekseer)
|
|
|
|
|
|
|
|
# axmol spec
|
|
|
|
if(ANDROID)
|
|
|
|
target_link_libraries(${PROJECT_NAME} INTERFACE ${_AX_CORE_LIB})
|
|
|
|
target_include_directories(${PROJECT_NAME} PRIVATE $<TARGET_PROPERTY:${_AX_CORE_LIB},INTERFACE_INCLUDE_DIRECTORIES>)
|
|
|
|
else()
|
2022-11-15 14:34:18 +08:00
|
|
|
target_link_libraries(${PROJECT_NAME} PUBLIC ${_AX_CORE_LIB})
|
2022-10-30 22:52:39 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
set(_AX_EXTENSION_LIBS "${PROJECT_NAME};${_AX_EXTENSION_LIBS}" CACHE INTERNAL "extensions for auto link to target application")
|