Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #root/cmake/CacatuidaeConfig.cmake
- include("${CMAKE_CURRENT_LIST_DIR}/CacatuidaeTargets.cmake")
- include("${CMAKE_CURRENT_LIST_DIR}/CMakeModules/ColoredMessage.cmake")
- set(supported_components Graphics Core)
- set(Cacatuidae_LIBRARIES)
- #components
- foreach(comp ${Cacatuidae_FIND_COMPONENTS})
- if(NOT ";${supported_components};" MATCHES ${comp})
- set(Cacatuidae_FOUND False)
- set(Cacatuidae_NOT_FOUND_MESSAGE "Specified unsupported component: ${comp}. \nSupported Components are: ${supported_components}")
- else()
- #want only use the components requested.
- list(APPEND Cacatuidae_LIBRARIES CAC::cac${comp})
- endif()
- endforeach()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement