2
0

CMakeLists.txt 736 B

1234567891011121314151617181920212223242526272829
  1. # Source files and their filters
  2. include(CMakeSources.cmake)
  3. # Includes
  4. set(ExampleProject_INC
  5. "Include"
  6. "../BansheeUtility/Include"
  7. "../BansheeCore/Include"
  8. "../BansheeEngine/Include")
  9. include_directories(${ExampleProject_INC})
  10. # Target
  11. if(WIN32)
  12. add_executable(ExampleProject WIN32 ${BS_EXAMPLEPROJECT_SRC})
  13. else()
  14. add_executable(ExampleProject ${BS_EXAMPLEPROJECT_SRC})
  15. endif()
  16. # Libraries
  17. ## Local libs
  18. target_link_libraries(ExampleProject BansheeEngine BansheeUtility BansheeCore)
  19. # IDE specific
  20. set_property(TARGET ExampleProject PROPERTY FOLDER Examples)
  21. # Plugin dependencies
  22. add_engine_dependencies(ExampleProject)
  23. add_dependencies(ExampleProject BansheeFBXImporter BansheeFontImporter BansheeFreeImgImporter)