CMakeLists.txt 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479
  1. INCLUDE(PolycodeIncludes)
  2. SET(CMAKE_DEBUG_POSTFIX "_d")
  3. IF(MSVC OR MINGW)
  4. INCLUDE_DIRECTORIES(
  5. ${LUA_INCLUDE_DIR}
  6. ${Polycode_SOURCE_DIR}/Bindings/Contents/LUA/Include
  7. ${Polycode_SOURCE_DIR}/Modules/Contents/UI/Include
  8. ${Polycode_SOURCE_DIR}/Modules/Bindings/UI/Include
  9. ${BOX2D_INCLUDE_DIR}
  10. ${Polycode_SOURCE_DIR}/Modules/Contents/2DPhysics/Include
  11. ${Polycode_SOURCE_DIR}/Modules/Bindings/2DPhysics/Include
  12. ${BULLET_INCLUDE_DIR}
  13. ${Polycode_SOURCE_DIR}/Modules/Contents/3DPhysics/Include
  14. ${Polycode_SOURCE_DIR}/Modules/Bindings/3DPhysics/Include
  15. Include
  16. ../../Core/Contents/PolycodeView/MSVC/
  17. )
  18. SET(polycodeplayer_SRCS
  19. Source/PolycodePlayer.cpp
  20. Source/PolycodeWindowsPlayer.cpp
  21. Platform/Windows/main.cpp
  22. )
  23. SET(polycodeplayer_HDRS
  24. Include/PolycodePlayer.h
  25. Include/PolycodeWindowsPlayer.h
  26. Include/resource.h
  27. )
  28. SET(polycodeplayerstandalone_SRCS
  29. Source/PolycodePlayer.cpp
  30. Source/PolycodeWindowsPlayer.cpp
  31. Platform/Windows/Standalone/main.cpp
  32. )
  33. SET(polycodeplayerstandalone_HDRS
  34. Include/PolycodePlayer.h
  35. Include/PolycodeWindowsPlayer.h
  36. Include/resource.h
  37. )
  38. ADD_EXECUTABLE(PolycodePlayer WIN32 Include/Polycode.rc ${polycodeplayer_SRCS} ${polycodeplayer_HDRS})
  39. ADD_EXECUTABLE(StandalonePlayer WIN32 Include/Polycode.rc ${polycodeplayerstandalone_SRCS} ${polycodeplayerstandalone_HDRS})
  40. TARGET_LINK_LIBRARIES(PolycodePlayer
  41. PolycodeLua
  42. Polycore
  43. ${ZLIB_LIBRARIES}
  44. ${LUA_LIBRARY}
  45. ${OPENGL_LIBRARIES}
  46. ${OPENAL_LIBRARY}
  47. ${PNG_LIBRARIES}
  48. ${FREETYPE_LIBRARIES}
  49. ${PHYSFS_LIBRARY}
  50. ${OGG_LIBRARY}
  51. ${VORBIS_LIBRARY}
  52. ${VORBISFILE_LIBRARY}
  53. opengl32
  54. glu32
  55. winmm
  56. ws2_32
  57. Physics2DLua
  58. Physics3DLua
  59. UILua
  60. Polycode2DPhysics
  61. Polycode3DPhysics
  62. PolycodeUI
  63. optimized ${BOX2D_RELEASE_LIBRARY}
  64. debug ${BOX2D_DEBUG_LIBRARY}
  65. optimized ${LIBBULLETMULTITHREADED}
  66. optimized ${LIBBULLETSOFTBODY}
  67. optimized ${LIBBULLETDYNAMICS}
  68. optimized ${LIBBULLETCOLLISION}
  69. optimized ${LIBBULLETMATH}
  70. debug ${LIBBULLETMULTITHREADED_DEBUG}
  71. debug ${LIBBULLETSOFTBODY_DEBUG}
  72. debug ${LIBBULLETDYNAMICS_DEBUG}
  73. debug ${LIBBULLETCOLLISION_DEBUG}
  74. debug ${LIBBULLETMATH_DEBUG}
  75. )
  76. TARGET_LINK_LIBRARIES(StandalonePlayer
  77. PolycodeLua
  78. Polycore
  79. ${ZLIB_LIBRARIES}
  80. ${LUA_LIBRARY}
  81. ${OPENGL_LIBRARIES}
  82. ${OPENAL_LIBRARY}
  83. ${PNG_LIBRARIES}
  84. ${FREETYPE_LIBRARIES}
  85. ${PHYSFS_LIBRARY}
  86. ${OGG_LIBRARY}
  87. ${VORBIS_LIBRARY}
  88. ${VORBISFILE_LIBRARY}
  89. opengl32
  90. glu32
  91. winmm
  92. ws2_32
  93. Physics2DLua
  94. Physics3DLua
  95. UILua
  96. Polycode2DPhysics
  97. Polycode3DPhysics
  98. PolycodeUI
  99. optimized ${BOX2D_RELEASE_LIBRARY}
  100. debug ${BOX2D_DEBUG_LIBRARY}
  101. optimized ${LIBBULLETMULTITHREADED}
  102. optimized ${LIBBULLETSOFTBODY}
  103. optimized ${LIBBULLETDYNAMICS}
  104. optimized ${LIBBULLETCOLLISION}
  105. optimized ${LIBBULLETMATH}
  106. debug ${LIBBULLETMULTITHREADED_DEBUG}
  107. debug ${LIBBULLETSOFTBODY_DEBUG}
  108. debug ${LIBBULLETDYNAMICS_DEBUG}
  109. debug ${LIBBULLETCOLLISION_DEBUG}
  110. debug ${LIBBULLETMATH_DEBUG}
  111. )
  112. ELSEIF(APPLE)
  113. # Needed for LuaJIT
  114. SET( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pagezero_size 10000 -image_base 100000000" )
  115. INCLUDE_DIRECTORIES(
  116. ${LUA_INCLUDE_DIR}
  117. ${Polycode_SOURCE_DIR}/Bindings/Contents/LUA/Include
  118. ${Polycode_SOURCE_DIR}/Modules/Contents/UI/Include
  119. ${Polycode_SOURCE_DIR}/Modules/Bindings/UI/Include
  120. ${BOX2D_INCLUDE_DIR}
  121. ${Polycode_SOURCE_DIR}/Modules/Contents/2DPhysics/Include
  122. ${Polycode_SOURCE_DIR}/Modules/Bindings/2DPhysics/Include
  123. ${BULLET_INCLUDE_DIR}
  124. ${Polycode_SOURCE_DIR}/Modules/Contents/3DPhysics/Include
  125. ${Polycode_SOURCE_DIR}/Modules/Bindings/3DPhysics/Include
  126. Include
  127. ../../Core/Contents/PolycodeView/Mac\ OS\ X/
  128. )
  129. SET(polycodeplayer_SRCS
  130. Source/PolycodePlayer.cpp
  131. Source/PolycodeCocoaPlayer.mm
  132. Platform/Darwin/main.m
  133. Platform/Darwin/MyDocument.mm
  134. Platform/Darwin/PPlayerDocumentController.mm
  135. ../../Core/Contents/PolycodeView/Mac\ OS\ X/PolycodeView.mm
  136. )
  137. SET(polycodeplayer_HDRS
  138. Include/PolycodePlayer.h
  139. Include/PolycodeCocoaPlayer.h
  140. Platform/Darwin/MyDocument.h
  141. Platform/Darwin/PPlayerDocumentController.h
  142. ../../Core/Contents/PolycodeView/Mac\ OS\ X/PolycodeView.h
  143. )
  144. SET(polycodeplayerstandalone_SRCS
  145. Source/PolycodePlayer.cpp
  146. Source/PolycodeCocoaPlayer.mm
  147. Platform/Darwin/Standalone/main.m
  148. Platform/Darwin/Standalone/StandalonePlayerAppDelegate.mm
  149. ../../Core/Contents/PolycodeView/Mac\ OS\ X/PolycodeView.mm
  150. )
  151. SET(polycodeplayerstandalone_HDRS
  152. Include/PolycodePlayer.h
  153. Include/PolycodeCocoaPlayer.h
  154. Platform/Darwin/Standalone/StandalonePlayerAppDelegate.h
  155. ../../Core/Contents/PolycodeView/Mac\ OS\ X/PolycodeView.h
  156. )
  157. # IF(POLYCODE_BUILD_SHARED)
  158. # ADD_EXECUTABLE(PolycodePlayer MACOSX_BUNDLE ${polycodeplayer_SRCS} ${polycodeplayer_HDRS})
  159. # TARGET_LINK_LIBRARIES(PolycodePlayer Polycore PolycodeLua ${LUA_LIBRARY})
  160. # ENDIF(POLYCODE_BUILD_SHARED)
  161. find_program(IBTOOL ibtool HINTS "/usr/bin" "${OSX_DEVELOPER_ROOT}/usr/bin")
  162. if (${IBTOOL} STREQUAL "IBTOOL-NOTFOUND")
  163. message(SEND_ERROR "ibtool can not be found and is needed to compile the .xib files. It should have been installed with
  164. the Apple developer tools. The default system paths were searched in addition to ${OSX_DEVELOPER_ROOT}/usr/bin")
  165. endif()
  166. set (PolycodePlayer_XIBS
  167. MainMenu
  168. MyDocument
  169. )
  170. set (PolycodePlayerStandalone_XIBS
  171. MainMenu
  172. )
  173. ADD_EXECUTABLE(PolycodePlayer MACOSX_BUNDLE ${polycodeplayer_SRCS} ${polycodeplayer_HDRS})
  174. set_target_properties( PolycodePlayer PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${Polycode_SOURCE_DIR}/Player/Contents/Platform/Darwin/Info.plist )
  175. ADD_EXECUTABLE(StandalonePlayer MACOSX_BUNDLE ${polycodeplayerstandalone_SRCS} ${polycodeplayerstandalone_HDRS})
  176. set_target_properties( StandalonePlayer PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${Polycode_SOURCE_DIR}/Player/Contents/Platform/Darwin/Standalone/Info.plist )
  177. TARGET_LINK_LIBRARIES(PolycodePlayer
  178. Polycore
  179. PolycodeLua
  180. "-framework Cocoa"
  181. "-framework IOKit"
  182. ${LUA_LIBRARY}
  183. ${OPENGL_LIBRARIES}
  184. ${OPENAL_LIBRARY}
  185. ${ZLIB_LIBRARIES}
  186. ${PNG_LIBRARIES}
  187. ${FREETYPE_LIBRARIES}
  188. ${PHYSFS_LIBRARY}
  189. ${OGG_LIBRARY}
  190. ${VORBIS_LIBRARY}
  191. ${VORBISFILE_LIBRARY}
  192. ${BOX2D_RELEASE_LIBRARY}
  193. optimized ${LIBBULLETMULTITHREADED}
  194. optimized ${LIBBULLETSOFTBODY}
  195. optimized ${LIBBULLETDYNAMICS}
  196. optimized ${LIBBULLETCOLLISION}
  197. optimized ${LIBBULLETMATH}
  198. debug ${LIBBULLETMULTITHREADED_DEBUG}
  199. debug ${LIBBULLETSOFTBODY_DEBUG}
  200. debug ${LIBBULLETDYNAMICS_DEBUG}
  201. debug ${LIBBULLETCOLLISION_DEBUG}
  202. debug ${LIBBULLETMATH_DEBUG}
  203. Polycode2DPhysics
  204. Polycode3DPhysics
  205. PolycodeUI
  206. Physics2DLua
  207. Physics3DLua
  208. UILua
  209. )
  210. TARGET_LINK_LIBRARIES(StandalonePlayer
  211. Polycore
  212. PolycodeLua
  213. "-framework Cocoa"
  214. "-framework IOKit"
  215. ${LUA_LIBRARY}
  216. ${OPENGL_LIBRARIES}
  217. ${OPENAL_LIBRARY}
  218. ${ZLIB_LIBRARIES}
  219. ${PNG_LIBRARIES}
  220. ${FREETYPE_LIBRARIES}
  221. ${PHYSFS_LIBRARY}
  222. ${OGG_LIBRARY}
  223. ${VORBIS_LIBRARY}
  224. ${VORBISFILE_LIBRARY}
  225. ${BOX2D_RELEASE_LIBRARY}
  226. optimized ${LIBBULLETMULTITHREADED}
  227. optimized ${LIBBULLETSOFTBODY}
  228. optimized ${LIBBULLETDYNAMICS}
  229. optimized ${LIBBULLETCOLLISION}
  230. optimized ${LIBBULLETMATH}
  231. debug ${LIBBULLETMULTITHREADED_DEBUG}
  232. debug ${LIBBULLETSOFTBODY_DEBUG}
  233. debug ${LIBBULLETDYNAMICS_DEBUG}
  234. debug ${LIBBULLETCOLLISION_DEBUG}
  235. debug ${LIBBULLETMATH_DEBUG}
  236. Polycode2DPhysics
  237. Polycode3DPhysics
  238. PolycodeUI
  239. Physics2DLua
  240. Physics3DLua
  241. UILua
  242. )
  243. add_custom_command (TARGET PolycodePlayer PRE_BUILD
  244. COMMAND mkdir -p ${PROJECT_BINARY_DIR}/Player/Contents/\${CONFIGURATION}/PolycodePlayer.app/Contents/Resources)
  245. add_custom_command (TARGET PolycodePlayer PRE_BUILD
  246. COMMAND cp ${Polycode_SOURCE_DIR}/Player/Contents/Platform/Darwin/app_file_icon.icns ${PROJECT_BINARY_DIR}/Player/Contents/\${CONFIGURATION}/PolycodePlayer.app/Contents/Resources)
  247. add_custom_command (TARGET PolycodePlayer PRE_BUILD
  248. COMMAND cp ${Polycode_SOURCE_DIR}/Player/Contents/Platform/Darwin/player_icon.icns ${PROJECT_BINARY_DIR}/Player/Contents/\${CONFIGURATION}/PolycodePlayer.app/Contents/Resources)
  249. add_custom_command (TARGET PolycodePlayer PRE_BUILD
  250. COMMAND cp ${Polycode_SOURCE_DIR}/Assets/Default\ asset\ pack/default.pak ${PROJECT_BINARY_DIR}/Player/Contents/\${CONFIGURATION}/PolycodePlayer.app/Contents/Resources)
  251. add_custom_command (TARGET PolycodePlayer PRE_BUILD
  252. COMMAND cp ${Polycode_SOURCE_DIR}/Assets/Default\ asset\ pack/hdr.pak ${PROJECT_BINARY_DIR}/Player/Contents/\${CONFIGURATION}/PolycodePlayer.app/Contents/Resources)
  253. add_custom_command (TARGET PolycodePlayer PRE_BUILD
  254. COMMAND cp -R ${Polycode_SOURCE_DIR}/Bindings/Contents/LUA/API/api.pak ${PROJECT_BINARY_DIR}/Player/Contents/\${CONFIGURATION}/PolycodePlayer.app/Contents/Resources)
  255. add_custom_command (TARGET PolycodePlayer PRE_BUILD
  256. COMMAND cp -R ${Polycode_SOURCE_DIR}/Modules/Bindings/2DPhysics/API/Physics2D.pak ${PROJECT_BINARY_DIR}/Player/Contents/\${CONFIGURATION}/PolycodePlayer.app/Contents/Resources)
  257. add_custom_command (TARGET PolycodePlayer PRE_BUILD
  258. COMMAND cp -R ${Polycode_SOURCE_DIR}/Modules/Bindings/3DPhysics/API/Physics3D.pak ${PROJECT_BINARY_DIR}/Player/Contents/\${CONFIGURATION}/PolycodePlayer.app/Contents/Resources)
  259. add_custom_command (TARGET PolycodePlayer PRE_BUILD
  260. COMMAND cp -R ${Polycode_SOURCE_DIR}/Modules/Bindings/UI/API/UI.pak ${PROJECT_BINARY_DIR}/Player/Contents/\${CONFIGURATION}/PolycodePlayer.app/Contents/Resources)
  261. add_custom_command (TARGET PolycodePlayer PRE_BUILD
  262. COMMAND cp -R ${Polycode_SOURCE_DIR}/Assets/UIThemes.pak ${PROJECT_BINARY_DIR}/Player/Contents/\${CONFIGURATION}/PolycodePlayer.app/Contents/Resources)
  263. add_custom_command (TARGET StandalonePlayer PRE_BUILD
  264. COMMAND mkdir -p ${PROJECT_BINARY_DIR}/Player/Contents/\${CONFIGURATION}/StandalonePlayer.app/Contents/Resources)
  265. add_custom_command (TARGET StandalonePlayer PRE_BUILD
  266. COMMAND cp ${Polycode_SOURCE_DIR}/Player/Contents/Platform/Darwin/player_icon.icns ${PROJECT_BINARY_DIR}/Player/Contents/\${CONFIGURATION}/StandalonePlayer.app/Contents/Resources)
  267. add_custom_command (TARGET StandalonePlayer PRE_BUILD
  268. COMMAND cp ${Polycode_SOURCE_DIR}/Assets/Default\ asset\ pack/default.pak ${PROJECT_BINARY_DIR}/Player/Contents/\${CONFIGURATION}/StandalonePlayer.app/Contents/Resources)
  269. add_custom_command (TARGET StandalonePlayer PRE_BUILD
  270. COMMAND cp ${Polycode_SOURCE_DIR}/Assets/Default\ asset\ pack/hdr.pak ${PROJECT_BINARY_DIR}/Player/Contents/\${CONFIGURATION}/StandalonePlayer.app/Contents/Resources)
  271. add_custom_command (TARGET StandalonePlayer PRE_BUILD
  272. COMMAND cp -R ${Polycode_SOURCE_DIR}/Bindings/Contents/LUA/API/api.pak ${PROJECT_BINARY_DIR}/Player/Contents/\${CONFIGURATION}/StandalonePlayer.app/Contents/Resources)
  273. add_custom_command (TARGET StandalonePlayer PRE_BUILD
  274. COMMAND cp ${Polycode_SOURCE_DIR}/Assets/SamplePolyapp/main.polyapp ${PROJECT_BINARY_DIR}/Player/Contents/\${CONFIGURATION}/StandalonePlayer.app/Contents/Resources)
  275. add_custom_command (TARGET StandalonePlayer PRE_BUILD
  276. COMMAND cp -R ${Polycode_SOURCE_DIR}/Modules/Bindings/2DPhysics/API/Physics2D.pak ${PROJECT_BINARY_DIR}/Player/Contents/\${CONFIGURATION}/StandalonePlayer.app/Contents/Resources)
  277. add_custom_command (TARGET StandalonePlayer PRE_BUILD
  278. COMMAND cp -R ${Polycode_SOURCE_DIR}/Modules/Bindings/3DPhysics/API/Physics3D.pak ${PROJECT_BINARY_DIR}/Player/Contents/\${CONFIGURATION}/StandalonePlayer.app/Contents/Resources)
  279. add_custom_command (TARGET StandalonePlayer PRE_BUILD
  280. COMMAND cp -R ${Polycode_SOURCE_DIR}/Modules/Bindings/UI/API/UI.pak ${PROJECT_BINARY_DIR}/Player/Contents/\${CONFIGURATION}/StandalonePlayer.app/Contents/Resources)
  281. add_custom_command (TARGET StandalonePlayer PRE_BUILD
  282. COMMAND cp -R ${Polycode_SOURCE_DIR}/Assets/UIThemes.pak ${PROJECT_BINARY_DIR}/Player/Contents/\${CONFIGURATION}/PolycodePlayer.app/Contents/Resources)
  283. foreach(xib ${PolycodePlayer_XIBS})
  284. add_custom_command (TARGET PolycodePlayer POST_BUILD
  285. COMMAND ${IBTOOL} --errors --warnings --notices --output-format human-readable-text
  286. --compile ${PROJECT_BINARY_DIR}/Player/Contents/\${CONFIGURATION}/PolycodePlayer.app/Contents/Resources/${xib}.nib
  287. ${Polycode_SOURCE_DIR}/Player/Contents/Platform/Darwin/${xib}.xib
  288. COMMENT "Compiling ${Polycode_SOURCE_DIR}/Player/Contents/Platform/Darwin/${xib}.xib")
  289. endforeach()
  290. foreach(xib ${PolycodePlayerStandalone_XIBS})
  291. add_custom_command (TARGET StandalonePlayer POST_BUILD
  292. COMMAND ${IBTOOL} --errors --warnings --notices --output-format human-readable-text
  293. --compile ${PROJECT_BINARY_DIR}/Player/Contents/\${CONFIGURATION}/StandalonePlayer.app/Contents/Resources/${xib}.nib
  294. ${Polycode_SOURCE_DIR}/Player/Contents/Platform/Darwin/Standalone/${xib}.xib
  295. COMMENT "Compiling ${Polycode_SOURCE_DIR}/Player/Contents/Platform/Darwin/Standalone/${xib}.xib")
  296. endforeach()
  297. ELSE(MSVC OR MINGW)
  298. INCLUDE_DIRECTORIES(
  299. ${LUA_INCLUDE_DIR}
  300. ${Polycode_SOURCE_DIR}/Bindings/Contents/LUA/Include
  301. ${Polycode_SOURCE_DIR}/Modules/Contents/UI/Include
  302. ${Polycode_SOURCE_DIR}/Modules/Bindings/UI/Include
  303. ${BOX2D_INCLUDE_DIR}
  304. ${Polycode_SOURCE_DIR}/Modules/Contents/2DPhysics/Include
  305. ${Polycode_SOURCE_DIR}/Modules/Bindings/2DPhysics/Include
  306. ${BULLET_INCLUDE_DIR}
  307. ${Polycode_SOURCE_DIR}/Modules/Contents/3DPhysics/Include
  308. ${Polycode_SOURCE_DIR}/Modules/Bindings/3DPhysics/Include
  309. Include
  310. ../../Core/Contents/PolycodeView/Linux/
  311. )
  312. SET(polycodeplayer_SRCS
  313. Source/PolycodePlayer.cpp
  314. Source/PolycodeLinuxPlayer.cpp
  315. Platform/Linux/main.cpp
  316. )
  317. SET(polycodeplayer_HDRS
  318. Include/PolycodePlayer.h
  319. Include/PolycodeLinuxPlayer.h
  320. )
  321. SET(polycodeplayerstandalone_SRCS
  322. Source/PolycodePlayer.cpp
  323. Source/PolycodeLinuxPlayer.cpp
  324. Platform/Linux/Standalone/main.cpp
  325. )
  326. SET(polycodeplayerstandalone_HDRS
  327. Include/PolycodePlayer.h
  328. Include/PolycodeLinuxPlayer.h
  329. )
  330. ADD_EXECUTABLE(PolycodePlayer ${polycodeplayer_SRCS} ${polycodeplayer_HDRS})
  331. ADD_EXECUTABLE(StandalonePlayer ${polycodeplayerstandalone_SRCS} ${polycodeplayerstandalone_HDRS})
  332. TARGET_LINK_LIBRARIES(PolycodePlayer
  333. rt
  334. pthread
  335. PolycodeLua
  336. Polycore
  337. ${LUA_LIBRARY}
  338. ${FREETYPE_LIBRARIES}
  339. ${VORBISFILE_LIBRARY}
  340. ${VORBIS_LIBRARY}
  341. ${OGG_LIBRARY}
  342. ${OPENAL_LIBRARY}
  343. ${PHYSFS_LIBRARY}
  344. ${PNG_LIBRARIES}
  345. ${ZLIB_LIBRARY}
  346. ${OPENGL_LIBRARIES}
  347. ${SDL_LIBRARY}
  348. dl
  349. Physics2DLua
  350. Physics3DLua
  351. UILua
  352. Polycode2DPhysics
  353. Polycode3DPhysics
  354. PolycodeUI
  355. ${BOX2D_RELEASE_LIBRARY}
  356. optimized ${LIBBULLETMULTITHREADED}
  357. optimized ${LIBBULLETSOFTBODY}
  358. optimized ${LIBBULLETDYNAMICS}
  359. optimized ${LIBBULLETCOLLISION}
  360. optimized ${LIBBULLETMATH}
  361. debug ${LIBBULLETMULTITHREADED_DEBUG}
  362. debug ${LIBBULLETSOFTBODY_DEBUG}
  363. debug ${LIBBULLETDYNAMICS_DEBUG}
  364. debug ${LIBBULLETCOLLISION_DEBUG}
  365. debug ${LIBBULLETMATH_DEBUG}
  366. )
  367. TARGET_LINK_LIBRARIES(StandalonePlayer
  368. rt
  369. pthread
  370. PolycodeLua
  371. Polycore
  372. ${LUA_LIBRARY}
  373. ${FREETYPE_LIBRARIES}
  374. ${VORBISFILE_LIBRARY}
  375. ${VORBIS_LIBRARY}
  376. ${OGG_LIBRARY}
  377. ${OPENAL_LIBRARY}
  378. ${PHYSFS_LIBRARY}
  379. ${PNG_LIBRARIES}
  380. ${ZLIB_LIBRARY}
  381. ${OPENGL_LIBRARIES}
  382. ${SDL_LIBRARY}
  383. dl
  384. Physics2DLua
  385. Physics3DLua
  386. UILua
  387. Polycode2DPhysics
  388. Polycode3DPhysics
  389. PolycodeUI
  390. ${BOX2D_RELEASE_LIBRARY}
  391. optimized ${LIBBULLETMULTITHREADED}
  392. optimized ${LIBBULLETSOFTBODY}
  393. optimized ${LIBBULLETDYNAMICS}
  394. optimized ${LIBBULLETCOLLISION}
  395. optimized ${LIBBULLETMATH}
  396. debug ${LIBBULLETMULTITHREADED_DEBUG}
  397. debug ${LIBBULLETSOFTBODY_DEBUG}
  398. debug ${LIBBULLETDYNAMICS_DEBUG}
  399. debug ${LIBBULLETCOLLISION_DEBUG}
  400. debug ${LIBBULLETMATH_DEBUG}
  401. )
  402. ENDIF(MSVC OR MINGW)
  403. INSTALL(TARGETS PolycodePlayer
  404. DESTINATION Player)
  405. INSTALL(TARGETS StandalonePlayer
  406. DESTINATION Player)
  407. IF(MSVC OR MINGW)
  408. INSTALL(FILES "${Polycode_SOURCE_DIR}/Assets/Default\ asset\ pack/default.pak" DESTINATION Player)
  409. INSTALL(FILES "${Polycode_SOURCE_DIR}/Assets/Default\ asset\ pack/hdr.pak" DESTINATION Player)
  410. INSTALL(FILES "${Polycode_SOURCE_DIR}/Assets/SamplePolyapp/main.polyapp" DESTINATION Player)
  411. INSTALL(FILES "${Polycode_SOURCE_DIR}/Bindings/Contents/LUA/API/api.pak" DESTINATION Player)
  412. INSTALL(FILES ${POLYCODE_RELEASE_DIR}/Framework/Core/Dependencies/bin/OpenAL32.dll DESTINATION Player)
  413. ELSEIF(APPLE)
  414. ELSE(MSVC OR MINGW)
  415. INSTALL(FILES "${Polycode_SOURCE_DIR}/Assets/Default\ asset\ pack/default.pak" DESTINATION Player)
  416. INSTALL(FILES "${Polycode_SOURCE_DIR}/Assets/Default\ asset\ pack/hdr.pak" DESTINATION Player)
  417. INSTALL(FILES "${Polycode_SOURCE_DIR}/Assets/SamplePolyapp/main.polyapp" DESTINATION Player)
  418. INSTALL(FILES "${Polycode_SOURCE_DIR}/Bindings/Contents/LUA/API/api.pak" DESTINATION Player)
  419. ENDIF(MSVC OR MINGW)