CMakeLists.txt 18 KB

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