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.
15 lines
525 B
15 lines
525 B
find_package(UseComponents OPTIONAL_COMPONENTS Comp1 Comp2 Comp3)
|
|
|
|
if (NOT UseComponents_FOUND)
|
|
message (FATAL_ERROR "package UseComponents Not Found.")
|
|
endif()
|
|
if (NOT UseComponents_Comp1_FOUND)
|
|
message (FATAL_ERROR "package UseComponents, component Comp1 not found.")
|
|
endif()
|
|
if (NOT UseComponents_Comp2_FOUND)
|
|
message (FATAL_ERROR "package UseComponents, component Comp2 not found.")
|
|
endif()
|
|
if (UseComponents_Comp3_FOUND)
|
|
message (FATAL_ERROR "package UseComponents, component Comp2 unexpectedly found.")
|
|
endif()
|