CMakeLists.txt 881 B

123456789101112131415161718192021222324252627282930313233
  1. # Source files and their filters
  2. include(CMakeSources.cmake)
  3. source_group("Header Files\\Generated" FILES ${BS_GENERATED_ENGINE_H_FILES})
  4. source_group("Source Files\\Generated" FILES ${BS_GENERATED_ENGINE_CPP_FILES})
  5. # Includes
  6. set(SBansheeEngine_INC
  7. "./"
  8. "../BansheeUtility"
  9. "../BansheeCore"
  10. "../BansheeEngine"
  11. "../BansheeEditor"
  12. "../BansheeMono"
  13. "${PROJECT_BINARY_DIR}/Generated/Engine/Include")
  14. include_directories(${SBansheeEngine_INC})
  15. # Target
  16. add_library(SBansheeEngine SHARED
  17. ${BS_SBANSHEEENGINE_SRC}
  18. ${BS_GENERATED_ENGINE_H_FILES}
  19. ${BS_GENERATED_ENGINE_CPP_FILES})
  20. # Defines
  21. target_compile_definitions(SBansheeEngine PRIVATE -DBS_SCR_BE_EXPORTS)
  22. # Libraries
  23. ## Local libs
  24. target_link_libraries(SBansheeEngine BansheeMono BansheeEditor BansheeEngine BansheeUtility BansheeCore)
  25. # IDE specific
  26. set_property(TARGET SBansheeEngine PROPERTY FOLDER Script)