]> git.stg.codes - stg.git/blob - cmake/modules/FindFBClient.cmake
More std::jthread stuff.
[stg.git] / cmake / modules / FindFBClient.cmake
1 find_path ( FBClient_INCLUDE_DIR NAMES ibase.h DOC "Path to FBClient header files." )
2 mark_as_advanced ( FBClient_INCLUDE_DIR )
3
4 find_library ( FBClient_LIB NAMES fbclient DOC "Location of FBClient library." )
5 mark_as_advanced ( FBClient_LIB )
6
7 include ( FindPackageHandleStandardArgs )
8 find_package_handle_standard_args ( FBClient
9                                     REQUIRED_VARS FBClient_LIB FBClient_INCLUDE_DIR
10                                     VERSION_VAR FBClient_VERSION )
11
12 # Create the imported target
13 if ( FBClient_FOUND )
14     set ( FBClient_INCLUDE_DIRS ${FBClient_INCLUDE_DIR} )
15     set ( FBClient_LIBRARIES ${FBClient_LIB} )
16     if ( NOT TARGET FBClient::FBClient )
17         add_library ( FBClient::FBClient UNKNOWN IMPORTED )
18         set_target_properties ( FBClient::FBClient PROPERTIES
19                                 IMPORTED_LOCATION "${FBClient_LIB}"
20                                 INTERFACE_INCLUDE_DIRECTORIES "${FBClient_INCLUDE_DIR}" )
21     endif ( NOT TARGET FBClient::FBClient )
22 endif ( FBClient_FOUND )