CMakeLists.txt
29 lines
| 933 B
| text/plain
|
TextLexer
r1331 | include_directories(include) | |||
FILE (GLOB_RECURSE mockplugin_SRCS | ||||
include/*.h | ||||
src/*.cpp | ||||
resources/*.qrc | ||||
) | ||||
|
r98 | |||
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() | ||||
|
r98 | |||
r1331 | add_library(mockplugin ${mockplugin_SRCS}) | |||
SET_TARGET_PROPERTIES(mockplugin PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE) | ||||
|
r98 | |||
r1331 | target_link_libraries(mockplugin sciqlopgui) | |||
|
r98 | |||
r1331 | install(TARGETS mockplugin | |||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/SciQlop | ||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/SciQlop | ||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) | ||||
|
r98 | |||
r1331 | include(sciqlop_tests) | |||
|
r98 | |||
r1331 | add_definitions(-DMOCKPLUGIN_TESTS_RESOURCES_DIR="${CMAKE_CURRENT_LIST_DIR}/tests-resources") | |||
|
r98 | |||
r1351 | #declare_test(TestCosinusAcquisition TestCosinusAcquisition tests/TestCosinusAcquisition.cpp "mockplugin;Qt5::Test") | |||
|
r98 | |||