CMakeLists.txt 557 B

123456789101112131415161718192021222324252627282930313233
  1. add_executable(Tutorial)
  2. target_sources(Tutorial
  3. PRIVATE
  4. Tutorial.cxx
  5. )
  6. # TODO14: Add VendorLib to Tutorial
  7. target_link_libraries(Tutorial
  8. PRIVATE
  9. MathFunctions
  10. )
  11. # TODO4: Add a compile feature for C++20 support to Tutorial
  12. if(
  13. (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") OR
  14. (CMAKE_CXX_COMPILER_FRONTEND_VARIANT STREQUAL "MSVC")
  15. )
  16. # TODO9: Add the /W3 compile flag to Tutorial
  17. elseif(
  18. (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR
  19. (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  20. )
  21. # TODO10: Add the -Wall compile flag to Tutorial
  22. endif()