##// END OF EJS Templates
Added static plugin support...
Added static plugin support In case of fully static exe even plugins must be static to allow single file executable. Small fix, when using resources in app from library they must be initialized with Q_INIT_RESOURCE. Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r911:f9b30b97e672
r1156:247dc18789c6
Show More
Findsciqlop-mockplugin.cmake
26 lines | 810 B | text/x-cmake | CMakeLexer
/ plugins / mockplugin / cmake / Findsciqlop-mockplugin.cmake
Alexandre Leroux
CMakeFiles for mock plugin
r98 # - 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)
Thibaud Rabillard
Add mac support in cmake
r911
if (APPLE)
set (OS_LIB_EXTENSION "dylib")
endif(APPLE)
Alexandre Leroux
Add target to copy MockPlugin library in "plugins" directory after compilation
r108 set(SCIQLOP-MOCKPLUGIN_LIBRARIES_NAME "libsciqlop_mockplugin${DEBUG_SUFFIX}.${OS_LIB_EXTENSION}")
set(SCIQLOP-MOCKPLUGIN_LIBRARIES "${LIBRARY_OUTPUT_PATH}/${SCIQLOP-MOCKPLUGIN_LIBRARIES_NAME}")
Alexandre Leroux
CMakeFiles for mock plugin
r98
set(SCIQLOP-MOCKPLUGIN_FOUND TRUE)