FindUnibilium.cmake 435 B

123456789101112
  1. find_path2(UNIBILIUM_INCLUDE_DIR unibilium.h)
  2. find_library2(UNIBILIUM_LIBRARY unibilium)
  3. find_package_handle_standard_args(Unibilium
  4. REQUIRED_VARS UNIBILIUM_INCLUDE_DIR UNIBILIUM_LIBRARY)
  5. add_library(unibilium INTERFACE)
  6. target_include_directories(unibilium SYSTEM BEFORE INTERFACE ${UNIBILIUM_INCLUDE_DIR})
  7. target_link_libraries(unibilium INTERFACE ${UNIBILIUM_LIBRARY})
  8. mark_as_advanced(UNIBILIUM_INCLUDE_DIR UNIBILIUM_LIBRARY)