CMakeLists.txt 768 B

12345678910111213141516171819202122232425262728293031
  1. # Source files and their filters
  2. include(CMakeSources.cmake)
  3. # Packages
  4. find_package(PhysX REQUIRED)
  5. # Includes
  6. set(BansheePhysX_INC
  7. "./"
  8. "../BansheeUtility"
  9. "../BansheeCore")
  10. include_directories(${BansheePhysX_INC})
  11. # Target
  12. add_library(BansheePhysX SHARED ${BS_BANSHEEPHYSX_SRC})
  13. # Defines
  14. target_compile_definitions(BansheePhysX PRIVATE -DBS_PHYSX_EXPORTS)
  15. target_compile_definitions(BansheePhysX PRIVATE $<$<CONFIG:Debug>:_DEBUG> $<$<CONFIG:OptimizedDebug>:NDEBUG>
  16. $<$<CONFIG:Release>:NDEBUG>)
  17. # Libraries
  18. ## External lib: PhysX
  19. target_link_libraries(BansheePhysX PRIVATE ${PhysX_LIBRARIES})
  20. ## Local libs
  21. target_link_libraries(BansheePhysX PRIVATE BansheeUtility BansheeCore)
  22. # IDE specific
  23. set_property(TARGET BansheePhysX PROPERTY FOLDER Plugins)