|
|
@ -24,20 +24,22 @@ mark_as_advanced(inih_inireader_LIBRARY)
|
|
|
|
|
|
|
|
|
|
|
|
find_package_handle_standard_args(inih REQUIRED_VARS inih_LIBRARY inih_INCLUDE_DIR)
|
|
|
|
find_package_handle_standard_args(inih REQUIRED_VARS inih_LIBRARY inih_INCLUDE_DIR)
|
|
|
|
|
|
|
|
|
|
|
|
if(inih_FOUND)
|
|
|
|
if(NOT inih_FOUND)
|
|
|
|
set(inih_INCLUDE_DIRS "${inih_INCLUDE_DIR}")
|
|
|
|
message(FATAL_ERROR "inih library not found")
|
|
|
|
set(inih_LIBRARIES "${inih_LIBRARY}")
|
|
|
|
|
|
|
|
if(NOT TARGET inih::libinih)
|
|
|
|
|
|
|
|
add_library(inih::libinih INTERFACE IMPORTED)
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set_property(TARGET inih::libinih PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${inih_INCLUDE_DIRS}")
|
|
|
|
|
|
|
|
set_property(TARGET inih::libinih PROPERTY INTERFACE_LINK_LIBRARIES "${inih_LIBRARIES}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set(inih_inireader_INCLUDE_DIRS "${inih_inireader_INCLUDE_DIR}")
|
|
|
|
|
|
|
|
set(inih_inireader_LIBRARIES "${inih_inireader_LIBRARY}")
|
|
|
|
|
|
|
|
if(NOT TARGET inih::inireader)
|
|
|
|
|
|
|
|
add_library(inih::inireader INTERFACE IMPORTED)
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set_property(TARGET inih::inireader PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${inih_inireader_INCLUDE_DIRS}")
|
|
|
|
|
|
|
|
set_property(TARGET inih::inireader PROPERTY INTERFACE_LINK_LIBRARIES "${inih_inireader_LIBRARIES}")
|
|
|
|
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set(inih_INCLUDE_DIRS "${inih_INCLUDE_DIR}")
|
|
|
|
|
|
|
|
set(inih_LIBRARIES "${inih_LIBRARY}")
|
|
|
|
|
|
|
|
if(NOT TARGET inih::libinih)
|
|
|
|
|
|
|
|
add_library(inih::libinih INTERFACE IMPORTED)
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set_property(TARGET inih::libinih PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${inih_INCLUDE_DIRS}")
|
|
|
|
|
|
|
|
set_property(TARGET inih::libinih PROPERTY INTERFACE_LINK_LIBRARIES "${inih_LIBRARIES}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set(inih_inireader_INCLUDE_DIRS "${inih_inireader_INCLUDE_DIR}")
|
|
|
|
|
|
|
|
set(inih_inireader_LIBRARIES "${inih_inireader_LIBRARY}")
|
|
|
|
|
|
|
|
if(NOT TARGET inih::inireader)
|
|
|
|
|
|
|
|
add_library(inih::inireader INTERFACE IMPORTED)
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set_property(TARGET inih::inireader PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${inih_inireader_INCLUDE_DIRS}")
|
|
|
|
|
|
|
|
set_property(TARGET inih::inireader PROPERTY INTERFACE_LINK_LIBRARIES "${inih_inireader_LIBRARIES}")
|
|
|
|