Skip to content

Commit 0340a77

Browse files
author
Luke Gehorsam
committed
export file
1 parent b26d115 commit 0340a77

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

cocos/CMakeLists.txt

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ endif()
150150

151151
if(${CMAKE_VERSION} VERSION_GREATER "3.16.0")
152152
message("CMake 3.16 target_precompile_headers")
153-
target_precompile_headers(cocos2d PRIVATE
153+
target_precompile_headers(cocos2d PRIVATE
154154
"$<$<COMPILE_LANGUAGE:CXX>:cocos2d.h>")
155155
endif()
156156

@@ -159,3 +159,17 @@ endif()
159159
# # TODO: Only turn this off if ${CMAKE_XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET} < 11.0
160160
# target_compile_options(cocos2d PUBLIC $<$<COMPILE_LANGUAGE:CXX>:-fno-aligned-allocation>)
161161
#endif()
162+
163+
export(TARGETS cocos2d
164+
external
165+
ext_recast
166+
ext_tinyxml2
167+
ext_xxhash
168+
ext_xxtea
169+
ext_clipper
170+
ext_edtaa3func
171+
ext_convertUTF
172+
ext_poly2tri
173+
ext_md5
174+
ext_unzip
175+
FILE cocos2d-export.cmake)

0 commit comments

Comments
 (0)