CMakeLists.txt 551 B

1234567891011121314151617181920212223
  1. # Target
  2. if(WIN32)
  3. add_executable(Physics WIN32 "Main.cpp")
  4. else()
  5. add_executable(Physics "Main.cpp")
  6. endif()
  7. # Working directory
  8. set_target_properties(Physics PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY "$(OutDir)")
  9. # Libraries
  10. ## Local libs
  11. target_link_libraries(Physics Common)
  12. # Plugin dependencies
  13. add_engine_dependencies(Physics)
  14. add_dependencies(Physics bsfFBXImporter bsfFontImporter bsfFreeImgImporter)
  15. # IDE specific
  16. set_property(TARGET Physics PROPERTY FOLDER Examples)
  17. # Precompiled header & Unity build
  18. conditional_cotire(Physics)