CMakeLists.txt 678 B

123456789101112131415161718192021222324252627
  1. # Source files and their filters
  2. include(CMakeSources.cmake)
  3. # Includes
  4. set(BansheeEngine_INC
  5. "Include"
  6. "../BansheeUtility/Include"
  7. "../BansheeCore/Include")
  8. include_directories(${BansheeEngine_INC})
  9. # Target
  10. add_library(BansheeEngine SHARED ${BS_BANSHEEENGINE_SRC})
  11. # Defines
  12. target_compile_definitions(BansheeEngine PRIVATE
  13. -DBS_EXPORTS
  14. $<$<CONFIG:Debug>:BS_CONFIG=BS_CONFIG_DEBUG>
  15. $<$<CONFIG:OptimizedDebug>:BS_CONFIG=BS_CONFIG_OPTIMIZEDDEBUG>
  16. $<$<CONFIG:Release>:BS_CONFIG=BS_CONFIG_RELEASE>)
  17. # Libraries
  18. ## Local libs
  19. target_link_libraries(BansheeEngine BansheeUtility BansheeCore)
  20. # IDE specific
  21. set_property(TARGET BansheeEngine PROPERTY FOLDER Layers)