CMakeLists.txt 861 B

123456789101112131415161718192021222324252627282930313233
  1. # Source files and their filters
  2. include(CMakeSources.cmake)
  3. # Includes
  4. set(BansheeEditorExec_INC
  5. "./"
  6. "../BansheeUtility"
  7. "../BansheeCore"
  8. "../BansheeEngine"
  9. "../BansheeEditor")
  10. include_directories(${BansheeEditorExec_INC})
  11. # Target
  12. if(WIN32)
  13. add_executable(BansheeEditorExec WIN32 ${BS_BANSHEEEDITOREXEC_SRC})
  14. else()
  15. add_executable(BansheeEditorExec ${BS_BANSHEEEDITOREXEC_SRC})
  16. endif()
  17. # Libraries
  18. ## Local libs
  19. target_link_libraries(BansheeEditorExec BansheeEditor BansheeEngine BansheeUtility BansheeCore)
  20. # IDE specific
  21. set_property(TARGET BansheeEditorExec PROPERTY FOLDER Executable)
  22. # Plugin dependencies
  23. add_engine_dependencies(BansheeEditorExec)
  24. add_dependencies(BansheeEditorExec BansheeFBXImporter BansheeFontImporter BansheeFreeImgImporter SBansheeEditor)
  25. # Compiler flags
  26. target_compile_options(BansheeEditorExec PUBLIC /wd4509)