CMakeLists.txt 772 B

12345678910111213141516171819202122232425262728293031
  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. # Target
  6. add_library(SBansheeEngine SHARED
  7. ${BS_SBANSHEEENGINE_SRC}
  8. ${BS_GENERATED_ENGINE_H_FILES}
  9. ${BS_GENERATED_ENGINE_CPP_FILES})
  10. # Common flags
  11. add_common_flags(SBansheeEngine)
  12. # Includes
  13. set(SBansheeEngine_INC
  14. "./"
  15. "./Generated")
  16. target_include_directories(SBansheeEngine PUBLIC ${SBansheeEngine_INC})
  17. # Defines
  18. target_compile_definitions(SBansheeEngine PRIVATE -DBS_SCR_BE_EXPORTS)
  19. # Libraries
  20. ## Local libs
  21. target_link_libraries(SBansheeEngine bsfMono bsf)
  22. # IDE specific
  23. set_property(TARGET SBansheeEngine PROPERTY FOLDER Script)