##// END OF EJS Templates
Some refactoring on PB11 wrappers...
Some refactoring on PB11 wrappers Most sciqlop core wrappers are moved into a dedicated python module. We needs to get rid off sqpapp! All current sciqlop modules should either be stateless or act as real singletons they must not need any app to be used. This will ease testing, wrapping and usage. Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r1341:f18e017310bc
r1341:f18e017310bc
Show More
CMakeLists.txt
84 lines | 3.9 KiB | text/plain | TextLexer
Modernized CMake configuration...
r1331 include_directories(include)
FILE (GLOB_RECURSE amdaplugin_SRCS
include/*.h
src/*.cpp
resources/*.qrc
)
Alexandre Leroux
Cmakes for AMDA plugin
r349
Added fuzzy tests and small fixes on meson files...
r1333
set(AMDA_server_type hybrid CACHE STRING "AMDA server type selected at CMake configure time")
set(AMDA_SERVER_TYPE "hybrid;amdatest;localhost" CACHE STRING
"List of possible for AMDA server type")
set_property(CACHE AMDA_server_type PROPERTY STRINGS ${AMDA_SERVER_TYPE})
Initial Pybind11 binding experiment working....
r1339 add_definitions(-DSCIQLOP_AMDA_SERVER="${AMDA_server_type}")
Added fuzzy tests and small fixes on meson files...
r1333
Modernized CMake configuration...
r1331 add_definitions(-DQT_PLUGIN)
add_definitions(-DSCIQLOP_PLUGIN_JSON_FILE_PATH="${CMAKE_CURRENT_SOURCE_DIR}/resources/amda.json")
if(NOT BUILD_SHARED_LIBS)
add_definitions(-DQT_STATICPLUGIN)
endif()
Alexandre Leroux
Cmakes for AMDA plugin
r349
Modernized CMake configuration...
r1331 add_library(amdaplugin ${amdaplugin_SRCS})
SET_TARGET_PROPERTIES(amdaplugin PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
Alexandre Leroux
Cmakes for AMDA plugin
r349
Modernized CMake configuration...
r1331 target_link_libraries(amdaplugin PUBLIC sciqlopgui)
Alexandre Leroux
Cmakes for AMDA plugin
r349
Modernized CMake configuration...
r1331 install(TARGETS amdaplugin
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/SciQlop
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/SciQlop
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
Alexandre Leroux
Cmakes for AMDA plugin
r349
Modernized CMake configuration...
r1331 include(sciqlop_tests)
Alexandre Leroux
Cmakes for AMDA plugin
r349
Modernized CMake configuration...
r1331 add_definitions(-DAMDA_TESTS_RESOURCES_DIR="${CMAKE_CURRENT_LIST_DIR}/tests-resources")
Alexandre Leroux
Cmakes for AMDA plugin
r349
Modernized CMake configuration...
r1331 declare_test(TestAmdaParser TestAmdaParser tests/TestAmdaParser.cpp "amdaplugin;Qt5::Test")
declare_test(TestAmdaResultParser TestAmdaResultParser tests/TestAmdaResultParser.cpp "amdaplugin;Qt5::Test")
declare_test(TestAmdaAcquisition TestAmdaAcquisition tests/TestAmdaAcquisition.cpp "amdaplugin;Qt5::Test")
Added fuzzy tests and small fixes on meson files...
r1333 declare_test(TestAmdaFuzzing TestAmdaFuzzing "tests/TestAmdaFuzzing.cpp;tests/FuzzingValidators.cpp;tests/FuzzingUtils.cpp;tests/FuzzingOperations.cpp;tests/FuzzingDefs.cpp" "amdaplugin;Qt5::Test")
Initial Pybind11 binding experiment working....
r1339
pybind11_add_module(pytestamda tests/PyTestAmdaWrapper.cpp)
target_link_libraries(pytestamda PUBLIC amdaplugin)
Some refactoring on PB11 wrappers...
r1341 target_link_libraries(pytestamda PUBLIC pysciqlop)
Initial Pybind11 binding experiment working....
r1339
#pybind11_add_module(pytestamdalib SHARED tests/PyTestAmdaWrapper.cpp)
add_library(pytestamdalib tests/PyTestAmdaWrapper.cpp)
target_link_libraries(pytestamdalib PUBLIC pybind11::module)
target_link_libraries(pytestamdalib PUBLIC pybind11::embed)
target_link_libraries(pytestamdalib PUBLIC amdaplugin)
Some refactoring on PB11 wrappers...
r1341 target_link_libraries(pytestamdalib PUBLIC pysciqlop)
GET_PROPERTY(CORE_PYTHON_PATH GLOBAL PROPERTY CORE_PYTHON_PATH)
Initial Pybind11 binding experiment working....
r1339
Added basic tests around Amda plugin Python wrapper...
r1340 declare_test(TestAmdaFileParserEmbed TestAmdaFileParserEmbed "tests/PyTestAmdaWrapperExe.cpp" "amdaplugin;pytestamdalib")
target_compile_definitions(TestAmdaFileParserEmbed PRIVATE -DPYTESTAMDA_SCRIPT="${CMAKE_CURRENT_LIST_DIR}/tests/TestAmdaFileParser.py")
Some refactoring on PB11 wrappers...
r1341 set_tests_properties(TestAmdaFileParserEmbed PROPERTIES ENVIRONMENT PYTHONPATH=${CMAKE_CURRENT_BINARY_DIR}:${CORE_PYTHON_PATH})
Added basic tests around Amda plugin Python wrapper...
r1340
declare_test(TestAmdaDownloadEmbed TestAmdaDownloadEmbed "tests/PyTestAmdaWrapperExe.cpp" "amdaplugin;pytestamdalib")
target_compile_definitions(TestAmdaDownloadEmbed PRIVATE -DPYTESTAMDA_SCRIPT="${CMAKE_CURRENT_LIST_DIR}/tests/TestAmdaDownload.py")
Some refactoring on PB11 wrappers...
r1341 set_tests_properties(TestAmdaDownloadEmbed PROPERTIES ENVIRONMENT PYTHONPATH=${CMAKE_CURRENT_BINARY_DIR}:${CORE_PYTHON_PATH})
declare_test(TestAmdaMiniFuzzEmbed TestAmdaMiniFuzzEmbed "tests/PyTestAmdaWrapperExe.cpp" "amdaplugin;pytestamdalib")
target_compile_definitions(TestAmdaMiniFuzzEmbed PRIVATE -DPYTESTAMDA_SCRIPT="${CMAKE_CURRENT_LIST_DIR}/tests/TestAmdaMiniFuzz.py")
set_tests_properties(TestAmdaMiniFuzzEmbed PROPERTIES ENVIRONMENT PYTHONPATH=${CMAKE_CURRENT_BINARY_DIR}:${CORE_PYTHON_PATH})
Added basic tests around Amda plugin Python wrapper...
r1340
Initial Pybind11 binding experiment working....
r1339
find_package(PythonInterp 3 REQUIRED)
Added basic tests around Amda plugin Python wrapper...
r1340 add_test(NAME TestAmdaFileParser
COMMAND ${PYTHON_EXECUTABLE}
${CMAKE_CURRENT_LIST_DIR}/tests/TestAmdaFileParser.py
TestAmdaFileParser)
Some refactoring on PB11 wrappers...
r1341 set_tests_properties(TestAmdaFileParser PROPERTIES ENVIRONMENT PYTHONPATH=${CMAKE_CURRENT_BINARY_DIR}:${CORE_PYTHON_PATH})
Added basic tests around Amda plugin Python wrapper...
r1340
add_test(NAME TestAmdaDownload
Initial Pybind11 binding experiment working....
r1339 COMMAND ${PYTHON_EXECUTABLE}
Added basic tests around Amda plugin Python wrapper...
r1340 ${CMAKE_CURRENT_LIST_DIR}/tests/TestAmdaDownload.py
TestAmdaDownload)
Some refactoring on PB11 wrappers...
r1341 set_tests_properties(TestAmdaDownload PROPERTIES ENVIRONMENT PYTHONPATH=${CMAKE_CURRENT_BINARY_DIR}:${CORE_PYTHON_PATH})