You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
948 B

3 months ago
  1. add_executable(yaml-cpp-sandbox sandbox.cpp)
  2. add_executable(yaml-cpp-parse parse.cpp)
  3. add_executable(yaml-cpp-read read.cpp)
  4. target_link_libraries(yaml-cpp-sandbox PRIVATE yaml-cpp)
  5. target_link_libraries(yaml-cpp-parse PRIVATE yaml-cpp)
  6. target_link_libraries(yaml-cpp-read PRIVATE yaml-cpp)
  7. set_property(TARGET yaml-cpp-sandbox PROPERTY OUTPUT_NAME sandbox)
  8. set_property(TARGET yaml-cpp-parse PROPERTY OUTPUT_NAME parse)
  9. set_property(TARGET yaml-cpp-read PROPERTY OUTPUT_NAME read)
  10. set_target_properties(yaml-cpp-sandbox
  11. PROPERTIES
  12. CXX_STANDARD_REQUIRED ON
  13. OUTPUT_NAME sandbox)
  14. set_target_properties(yaml-cpp-parse
  15. PROPERTIES
  16. CXX_STANDARD_REQUIRED ON
  17. OUTPUT_NAME parse)
  18. set_target_properties(yaml-cpp-read
  19. PROPERTIES
  20. CXX_STANDARD_REQUIRED ON
  21. OUTPUT_NAME read)
  22. if (NOT DEFINED CMAKE_CXX_STANDARD)
  23. set_target_properties(yaml-cpp-sandbox yaml-cpp-parse yaml-cpp-read
  24. PROPERTIES
  25. CXX_STANDARD 11)
  26. endif()