CMakeLists.txt 569 B

123456789101112131415161718
  1. cmake_minimum_required(VERSION 3.8)
  2. project(TestFindDoxygenDot VERSION 1.0 LANGUAGES NONE)
  3. # Testing a new signature w/ components
  4. find_package(Doxygen REQUIRED COMPONENTS dot)
  5. # No backwards compatibility expected when component form is used
  6. if(TARGET Doxygen::doxygen)
  7. if(DOXYGEN)
  8. message(FATAL_ERROR "DOXYGEN unexpectedly defined with component form")
  9. endif()
  10. else()
  11. message(FATAL_ERROR "Import target Doxygen::doxygen not defined")
  12. endif()
  13. if(NOT TARGET Doxygen::dot)
  14. message(FATAL_ERROR "Import target Doxygen::dot not defined")
  15. endif()