Skip to content
Snippets Groups Projects
Commit ec2a0256 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

Task #1813: always deploy the mocked WinCCWrapper

parent cf4867f5
Branches
Tags
No related merge requests found
......@@ -13,13 +13,9 @@ IF(WINCC_FOUND)
add_subdirectory(include)
add_subdirectory(src)
add_subdirectory(test)
ELSE()
MESSAGE(WARNING "The WinCC_OA API could not be found (WINCC_ROOT_DIR=${WINCC_ROOT_DIR}). Hence, the WinCCWrapper library cannot be build. We do continue with cmake-configure and build however, because for development one could use a mocked WinCCWrapper as well.")
# add the mock.py module with the mocked WinCCWrapper,
# so it is available for development even on systems without the WinCC_OA API
MESSAGE("adding mocked python WinCCWrapper for development")
include(PythonInstall)
python_install(test/mock.py DESTINATION lofar/common/wincc)
ENDIF(WINCC_FOUND)
# add subdir test anyway, it will install a mock, even on non-WinCC API systems.
add_subdirectory(test)
include(LofarCTest)
IF(BUILD_TESTING)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../include)
lofar_find_package(WINCC)
lofar_add_bin_program(WinCCSet WinCCSet.cc)
lofar_add_bin_program(WinCCGet WinCCGet.cc)
IF(WINCC_FOUND)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../include)
lofar_add_bin_program(WinCCSet WinCCSet.cc)
lofar_add_bin_program(WinCCGet WinCCGet.cc)
ENDIF(WINCC_FOUND)
ENDIF(BUILD_TESTING)
# always add the mock.py module with the mocked WinCCWrapper, so it is available for development and testing,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment