##// END OF EJS Templates
Some minor improvements on plugin loading:...
Some minor improvements on plugin loading: SciQLOP now looks recursively into a list of path and only tries to load dynamic library files. Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r108:6ac01596a3cb
r652:7c40e9303976
Show More
Findsciqlop-mockplugin.cmake
22 lines | 773 B | text/x-cmake | CMakeLexer
/ plugins / mockplugin / cmake / Findsciqlop-mockplugin.cmake
# - Try to find sciqlop-mockplugin
# Once done this will define
# SCIQLOP-MOCKPLUGIN_FOUND - System has sciqlop-mockplugin
# SCIQLOP-MOCKPLUGIN_INCLUDE_DIR - The sciqlop-mockplugin include directories
# SCIQLOP-MOCKPLUGIN_LIBRARIES - The libraries needed to use sciqlop-mockplugin
if(SCIQLOP-MOCKPLUGIN_FOUND)
return()
endif(SCIQLOP-MOCKPLUGIN_FOUND)
set(SCIQLOP-MOCKPLUGIN_INCLUDE_DIR ${sciqlop-mockplugin_DIR}/../include)
set (OS_LIB_EXTENSION "so")
if(WIN32)
set (OS_LIB_EXTENSION "dll")
endif(WIN32)
# TODO: Add Mac Support
set(SCIQLOP-MOCKPLUGIN_LIBRARIES_NAME "libsciqlop_mockplugin${DEBUG_SUFFIX}.${OS_LIB_EXTENSION}")
set(SCIQLOP-MOCKPLUGIN_LIBRARIES "${LIBRARY_OUTPUT_PATH}/${SCIQLOP-MOCKPLUGIN_LIBRARIES_NAME}")
set(SCIQLOP-MOCKPLUGIN_FOUND TRUE)