CMakeLists.txt 722 B

12345678910111213141516171819202122232425262728
  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. # Includes
  11. set(SBansheeEngine_INC
  12. "./"
  13. "./Generated")
  14. target_include_directories(SBansheeEngine PUBLIC ${SBansheeEngine_INC})
  15. # Defines
  16. target_compile_definitions(SBansheeEngine PRIVATE -DBS_SCR_BE_EXPORTS)
  17. # Libraries
  18. ## Local libs
  19. target_link_libraries(SBansheeEngine bsfMono bsf)
  20. # IDE specific
  21. set_property(TARGET SBansheeEngine PROPERTY FOLDER Script)