CMakeLists.txt 678 B

12345678910111213141516171819202122232425262728293031
  1. # Source files and their filters
  2. include(CMakeSources.cmake)
  3. # Includes
  4. set(BansheeEditor_INC
  5. "Include"
  6. "../BansheeUtility/Include"
  7. "../BansheeCore/Include"
  8. "../BansheeEngine/Include")
  9. include_directories(${BansheeEditor_INC})
  10. # Target
  11. add_library(BansheeEditor SHARED ${BS_BANSHEEEDITOR_SRC})
  12. # Defines
  13. target_compile_definitions(BansheeEditor PRIVATE -DBS_ED_EXPORTS)
  14. # Libraries
  15. ## Local libs
  16. target_link_libraries(BansheeEditor BansheeUtility BansheeCore BansheeEngine)
  17. ## OS libs
  18. if(WIN32)
  19. target_link_libraries(BansheeEditor Advapi32)
  20. else()
  21. # TODO_OTHER_PLATFORMS_GO_HERE
  22. endif()
  23. # IDE specific
  24. set_property(TARGET BansheeEditor PROPERTY FOLDER Layers)