##// END OF EJS Templates
Fixed wrong plugin path with windows...
Fixed wrong plugin path with windows Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r1401:332611cbdba3
r1401:332611cbdba3
Show More
CMakeLists.txt
93 lines | 4.1 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}")
Fix Win build
r1389 add_definitions(-DAMDAPLUGIN_LIB)
add_definitions(-DAMDA_LIB)
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
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
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
Some refactoring on PB11 wrappers...
r1341
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(pytestamda tests/PyTestAmdaWrapper.cpp)
target_link_libraries(pytestamda PUBLIC amdaplugin)
target_link_libraries(pytestamda PUBLIC pysciqlop)
Initial Pybind11 binding experiment working....
r1339
Some refactoring on PB11 wrappers...
r1341
Added option to disable PB11 wrappers...
r1380 #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)
target_link_libraries(pytestamdalib PUBLIC pysciqlop)
Initial Pybind11 binding experiment working....
r1339
Added option to disable PB11 wrappers...
r1380 GET_PROPERTY(CORE_PYTHON_PATH GLOBAL PROPERTY CORE_PYTHON_PATH)
Some refactoring on PB11 wrappers...
r1341
Added option to disable PB11 wrappers...
r1380 declare_test(TestAmdaFileParserEmbed TestAmdaFileParserEmbed "tests/PyTestAmdaWrapperExe.cpp" "pytestamdalib")
target_compile_definitions(TestAmdaFileParserEmbed PRIVATE -DPYTESTAMDA_SCRIPT="${CMAKE_CURRENT_LIST_DIR}/tests/TestAmdaFileParser.py")
set_tests_properties(TestAmdaFileParserEmbed PROPERTIES ENVIRONMENT PYTHONPATH=${CMAKE_CURRENT_BINARY_DIR}:${CORE_PYTHON_PATH})
Added basic tests around Amda plugin Python wrapper...
r1340
Some refactoring on PB11 wrappers...
r1341
Added option to disable PB11 wrappers...
r1380 declare_test(TestAmdaDownloadEmbed TestAmdaDownloadEmbed "tests/PyTestAmdaWrapperExe.cpp" "pytestamdalib")
target_compile_definitions(TestAmdaDownloadEmbed PRIVATE -DPYTESTAMDA_SCRIPT="${CMAKE_CURRENT_LIST_DIR}/tests/TestAmdaDownload.py")
set_tests_properties(TestAmdaDownloadEmbed PROPERTIES ENVIRONMENT PYTHONPATH=${CMAKE_CURRENT_BINARY_DIR}:${CORE_PYTHON_PATH})
Some refactoring on PB11 wrappers...
r1341
Added basic tests around Amda plugin Python wrapper...
r1340
Added option to disable PB11 wrappers...
r1380 declare_test(TestAmdaMiniFuzzEmbed TestAmdaMiniFuzzEmbed "tests/PyTestAmdaWrapperExe.cpp" "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})
Initial Pybind11 binding experiment working....
r1339
Added option to disable PB11 wrappers...
r1380 find_package(PythonInterp 3 REQUIRED)
Added basic tests around Amda plugin Python wrapper...
r1340
Added option to disable PB11 wrappers...
r1380 add_test(NAME TestAmdaFileParser
COMMAND ${PYTHON_EXECUTABLE}
${CMAKE_CURRENT_LIST_DIR}/tests/TestAmdaFileParser.py
TestAmdaFileParser)
set_tests_properties(TestAmdaFileParser PROPERTIES ENVIRONMENT PYTHONPATH=${CMAKE_CURRENT_BINARY_DIR}:${CORE_PYTHON_PATH})
Added basic tests around Amda plugin Python wrapper...
r1340
Added option to disable PB11 wrappers...
r1380
add_test(NAME TestAmdaDownload
COMMAND ${PYTHON_EXECUTABLE}
${CMAKE_CURRENT_LIST_DIR}/tests/TestAmdaDownload.py
TestAmdaDownload)
set_tests_properties(TestAmdaDownload PROPERTIES ENVIRONMENT PYTHONPATH=${CMAKE_CURRENT_BINARY_DIR}:${CORE_PYTHON_PATH})
endif(PyWrappers)