##// END OF EJS Templates
Wrapper prototype working, with all kind of Serie...
Wrapper prototype working, with all kind of Serie Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r1401:332611cbdba3
r1479:704e0f1deb02
Show More
CMakeLists.txt
37 lines | 1.2 KiB | text/plain | TextLexer
Modernized CMake configuration...
r1331 include_directories(include)
FILE (GLOB_RECURSE mockplugin_SRCS
include/*.h
src/*.cpp
resources/*.qrc
)
Alexandre Leroux
CMakeFiles for mock plugin
r98
Modernized CMake configuration...
r1331 add_definitions(-DQT_PLUGIN)
add_definitions(-DPLUGIN_JSON_FILE_PATH="${CMAKE_CURRENT_SOURCE_DIR}/resources/mockplugin.json")
if(NOT BUILD_SHARED_LIBS)
add_definitions(-DQT_STATICPLUGIN)
endif()
Alexandre Leroux
CMakeFiles for mock plugin
r98
Modernized CMake configuration...
r1331 add_library(mockplugin ${mockplugin_SRCS})
SET_TARGET_PROPERTIES(mockplugin PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
Alexandre Leroux
CMakeFiles for mock plugin
r98
Modernized CMake configuration...
r1331 target_link_libraries(mockplugin sciqlopgui)
Alexandre Leroux
CMakeFiles for mock plugin
r98
Modernized CMake configuration...
r1331 install(TARGETS mockplugin
Fixed wrong plugin path with windows...
r1401 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/SciQLop
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/SciQLop
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}/SciQLop)
Alexandre Leroux
CMakeFiles for mock plugin
r98
Modernized CMake configuration...
r1331 include(sciqlop_tests)
Alexandre Leroux
CMakeFiles for mock plugin
r98
Modernized CMake configuration...
r1331 add_definitions(-DMOCKPLUGIN_TESTS_RESOURCES_DIR="${CMAKE_CURRENT_LIST_DIR}/tests-resources")
Fix Win build
r1389 add_definitions(-DMOCKPLUGIN_LIB)
Alexandre Leroux
CMakeFiles for mock plugin
r98
Removed old IDataProvider IF, some small steps toward new VC integration...
r1351 #declare_test(TestCosinusAcquisition TestCosinusAcquisition tests/TestCosinusAcquisition.cpp "mockplugin;Qt5::Test")
Added option to disable PB11 wrappers...
r1380 if(PyWrappers)
Mingw build fix...
r1396 if(MINGW)
add_definitions(-D_hypot=hypot)
endif()
Added option to disable PB11 wrappers...
r1380 pybind11_add_module(pytestmockplugin tests/PyTestMockPluginWrapper.cpp)
target_link_libraries(pytestmockplugin PUBLIC mockplugin)
target_link_libraries(pytestmockplugin PUBLIC pysciqlop)
endif()