2021-01-28 22:23:33 +01:00
|
|
|
include(FindSimpleLibrary)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
|
2021-02-04 21:55:04 +01:00
|
|
|
find_package(Gint 2.2.1 REQUIRED)
|
|
|
|
|
2022-08-19 16:38:35 +02:00
|
|
|
find_simple_library("libprof-${FXSDK_PLATFORM}.a" libprof.h
|
2021-01-28 22:23:33 +01:00
|
|
|
"PROF_VERSION" PATH_VAR PROF_PATH VERSION_VAR PROF_VERSION)
|
|
|
|
|
|
|
|
find_package_handle_standard_args(LibProf
|
|
|
|
REQUIRED_VARS PROF_PATH PROF_VERSION
|
|
|
|
VERSION_VAR PROF_VERSION)
|
|
|
|
|
|
|
|
if(LibProf_FOUND)
|
|
|
|
add_library(LibProf::LibProf UNKNOWN IMPORTED)
|
|
|
|
set_target_properties(LibProf::LibProf PROPERTIES
|
|
|
|
IMPORTED_LOCATION "${PROF_PATH}"
|
2021-02-04 21:55:04 +01:00
|
|
|
INTERFACE_LINK_OPTIONS -lprof-${FXSDK_PLATFORM}
|
|
|
|
IMPORTED_LINK_INTERFACE_LIBRARIES Gint::Gint)
|
2021-01-28 22:23:33 +01:00
|
|
|
endif()
|