CMakeLists.txt 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475
  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 -R ${Polycode_SOURCE_DIR}/Bindings/Contents/LUA/API/api.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/2DPhysics/API/Physics2D.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/3DPhysics/API/Physics3D.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/UI/API/UI.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}/Assets/UIThemes.pak ${PROJECT_BINARY_DIR}/Player/Contents/\${CONFIGURATION}/PolycodePlayer.app/Contents/Resources)
  261. add_custom_command (TARGET StandalonePlayer PRE_BUILD
  262. COMMAND mkdir -p ${PROJECT_BINARY_DIR}/Player/Contents/\${CONFIGURATION}/StandalonePlayer.app/Contents/Resources)
  263. add_custom_command (TARGET StandalonePlayer PRE_BUILD
  264. COMMAND cp ${Polycode_SOURCE_DIR}/Player/Contents/Platform/Darwin/player_icon.icns ${PROJECT_BINARY_DIR}/Player/Contents/\${CONFIGURATION}/StandalonePlayer.app/Contents/Resources)
  265. add_custom_command (TARGET StandalonePlayer PRE_BUILD
  266. COMMAND cp ${Polycode_SOURCE_DIR}/Assets/Default\ asset\ pack/default.pak ${PROJECT_BINARY_DIR}/Player/Contents/\${CONFIGURATION}/StandalonePlayer.app/Contents/Resources)
  267. add_custom_command (TARGET StandalonePlayer PRE_BUILD
  268. COMMAND cp -R ${Polycode_SOURCE_DIR}/Bindings/Contents/LUA/API/api.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/SamplePolyapp/main.polyapp ${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/2DPhysics/API/Physics2D.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/3DPhysics/API/Physics3D.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}/Modules/Bindings/UI/API/UI.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}/Assets/UIThemes.pak ${PROJECT_BINARY_DIR}/Player/Contents/\${CONFIGURATION}/PolycodePlayer.app/Contents/Resources)
  279. foreach(xib ${PolycodePlayer_XIBS})
  280. add_custom_command (TARGET PolycodePlayer POST_BUILD
  281. COMMAND ${IBTOOL} --errors --warnings --notices --output-format human-readable-text
  282. --compile ${PROJECT_BINARY_DIR}/Player/Contents/\${CONFIGURATION}/PolycodePlayer.app/Contents/Resources/${xib}.nib
  283. ${Polycode_SOURCE_DIR}/Player/Contents/Platform/Darwin/${xib}.xib
  284. COMMENT "Compiling ${Polycode_SOURCE_DIR}/Player/Contents/Platform/Darwin/${xib}.xib")
  285. endforeach()
  286. foreach(xib ${PolycodePlayerStandalone_XIBS})
  287. add_custom_command (TARGET StandalonePlayer POST_BUILD
  288. COMMAND ${IBTOOL} --errors --warnings --notices --output-format human-readable-text
  289. --compile ${PROJECT_BINARY_DIR}/Player/Contents/\${CONFIGURATION}/StandalonePlayer.app/Contents/Resources/${xib}.nib
  290. ${Polycode_SOURCE_DIR}/Player/Contents/Platform/Darwin/Standalone/${xib}.xib
  291. COMMENT "Compiling ${Polycode_SOURCE_DIR}/Player/Contents/Platform/Darwin/Standalone/${xib}.xib")
  292. endforeach()
  293. ELSE(MSVC OR MINGW)
  294. INCLUDE_DIRECTORIES(
  295. ${LUA_INCLUDE_DIR}
  296. ${Polycode_SOURCE_DIR}/Bindings/Contents/LUA/Include
  297. ${Polycode_SOURCE_DIR}/Modules/Contents/UI/Include
  298. ${Polycode_SOURCE_DIR}/Modules/Bindings/UI/Include
  299. ${BOX2D_INCLUDE_DIR}
  300. ${Polycode_SOURCE_DIR}/Modules/Contents/2DPhysics/Include
  301. ${Polycode_SOURCE_DIR}/Modules/Bindings/2DPhysics/Include
  302. ${BULLET_INCLUDE_DIR}
  303. ${Polycode_SOURCE_DIR}/Modules/Contents/3DPhysics/Include
  304. ${Polycode_SOURCE_DIR}/Modules/Bindings/3DPhysics/Include
  305. Include
  306. ../../Core/Contents/PolycodeView/Linux/
  307. )
  308. SET(polycodeplayer_SRCS
  309. Source/PolycodePlayer.cpp
  310. Source/PolycodeLinuxPlayer.cpp
  311. Platform/Linux/main.cpp
  312. )
  313. SET(polycodeplayer_HDRS
  314. Include/PolycodePlayer.h
  315. Include/PolycodeLinuxPlayer.h
  316. )
  317. SET(polycodeplayerstandalone_SRCS
  318. Source/PolycodePlayer.cpp
  319. Source/PolycodeLinuxPlayer.cpp
  320. Platform/Linux/Standalone/main.cpp
  321. )
  322. SET(polycodeplayerstandalone_HDRS
  323. Include/PolycodePlayer.h
  324. Include/PolycodeLinuxPlayer.h
  325. )
  326. ADD_EXECUTABLE(PolycodePlayer ${polycodeplayer_SRCS} ${polycodeplayer_HDRS})
  327. ADD_EXECUTABLE(StandalonePlayer ${polycodeplayerstandalone_SRCS} ${polycodeplayerstandalone_HDRS})
  328. TARGET_LINK_LIBRARIES(PolycodePlayer
  329. rt
  330. pthread
  331. PolycodeLua
  332. Polycore
  333. ${LUA_LIBRARY}
  334. ${FREETYPE_LIBRARIES}
  335. ${VORBISFILE_LIBRARY}
  336. ${VORBIS_LIBRARY}
  337. ${OGG_LIBRARY}
  338. ${OPENAL_LIBRARY}
  339. ${PHYSFS_LIBRARY}
  340. ${PNG_LIBRARIES}
  341. ${ZLIB_LIBRARY}
  342. ${OPENGL_LIBRARIES}
  343. ${SDL_LIBRARY}
  344. dl
  345. Physics2DLua
  346. Physics3DLua
  347. UILua
  348. Polycode2DPhysics
  349. Polycode3DPhysics
  350. PolycodeUI
  351. ${BOX2D_RELEASE_LIBRARY}
  352. optimized ${LIBBULLETMULTITHREADED}
  353. optimized ${LIBBULLETSOFTBODY}
  354. optimized ${LIBBULLETDYNAMICS}
  355. optimized ${LIBBULLETCOLLISION}
  356. optimized ${LIBBULLETMATH}
  357. debug ${LIBBULLETMULTITHREADED_DEBUG}
  358. debug ${LIBBULLETSOFTBODY_DEBUG}
  359. debug ${LIBBULLETDYNAMICS_DEBUG}
  360. debug ${LIBBULLETCOLLISION_DEBUG}
  361. debug ${LIBBULLETMATH_DEBUG}
  362. )
  363. TARGET_LINK_LIBRARIES(StandalonePlayer
  364. rt
  365. pthread
  366. PolycodeLua
  367. Polycore
  368. ${LUA_LIBRARY}
  369. ${FREETYPE_LIBRARIES}
  370. ${VORBISFILE_LIBRARY}
  371. ${VORBIS_LIBRARY}
  372. ${OGG_LIBRARY}
  373. ${OPENAL_LIBRARY}
  374. ${PHYSFS_LIBRARY}
  375. ${PNG_LIBRARIES}
  376. ${ZLIB_LIBRARY}
  377. ${OPENGL_LIBRARIES}
  378. ${SDL_LIBRARY}
  379. dl
  380. Physics2DLua
  381. Physics3DLua
  382. UILua
  383. Polycode2DPhysics
  384. Polycode3DPhysics
  385. PolycodeUI
  386. ${BOX2D_RELEASE_LIBRARY}
  387. optimized ${LIBBULLETMULTITHREADED}
  388. optimized ${LIBBULLETSOFTBODY}
  389. optimized ${LIBBULLETDYNAMICS}
  390. optimized ${LIBBULLETCOLLISION}
  391. optimized ${LIBBULLETMATH}
  392. debug ${LIBBULLETMULTITHREADED_DEBUG}
  393. debug ${LIBBULLETSOFTBODY_DEBUG}
  394. debug ${LIBBULLETDYNAMICS_DEBUG}
  395. debug ${LIBBULLETCOLLISION_DEBUG}
  396. debug ${LIBBULLETMATH_DEBUG}
  397. )
  398. ENDIF(MSVC OR MINGW)
  399. INSTALL(TARGETS PolycodePlayer
  400. DESTINATION Player)
  401. INSTALL(TARGETS StandalonePlayer
  402. DESTINATION Player)
  403. IF(MSVC OR MINGW)
  404. INSTALL(FILES "${Polycode_SOURCE_DIR}/Assets/Default\ asset\ pack/default.pak" DESTINATION Player)
  405. INSTALL(FILES "${Polycode_SOURCE_DIR}/Assets/Default\ asset\ pack/hdr.pak" DESTINATION Player)
  406. INSTALL(FILES "${Polycode_SOURCE_DIR}/Assets/SamplePolyapp/main.polyapp" DESTINATION Player)
  407. INSTALL(FILES "${Polycode_SOURCE_DIR}/Bindings/Contents/LUA/API/api.pak" DESTINATION Player)
  408. INSTALL(FILES ${POLYCODE_RELEASE_DIR}/Framework/Core/Dependencies/bin/OpenAL32.dll DESTINATION Player)
  409. ELSEIF(APPLE)
  410. ELSE(MSVC OR MINGW)
  411. INSTALL(FILES "${Polycode_SOURCE_DIR}/Assets/Default\ asset\ pack/default.pak" DESTINATION Player)
  412. INSTALL(FILES "${Polycode_SOURCE_DIR}/Assets/Default\ asset\ pack/hdr.pak" DESTINATION Player)
  413. INSTALL(FILES "${Polycode_SOURCE_DIR}/Assets/SamplePolyapp/main.polyapp" DESTINATION Player)
  414. INSTALL(FILES "${Polycode_SOURCE_DIR}/Bindings/Contents/LUA/API/api.pak" DESTINATION Player)
  415. ENDIF(MSVC OR MINGW)