comparison UnitTestsSources/WebAssembly/CMakeLists.txt @ 1680:03afa09cfcf1

running the tests of the Orthanc Framework in WebAssembly
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 24 Nov 2020 16:39:54 +0100
parents 5b8b88e5bfd6
children 2bb735d76726
comparison
equal deleted inserted replaced
1679:5b8b88e5bfd6 1680:03afa09cfcf1
47 # --------------------------------------------------------------- 47 # ---------------------------------------------------------------
48 set(ALLOW_DOWNLOADS ON) 48 set(ALLOW_DOWNLOADS ON)
49 49
50 include(${CMAKE_SOURCE_DIR}/../../Applications/Platforms/WebAssembly/OrthancStoneWebAssemblyParameters.cmake) 50 include(${CMAKE_SOURCE_DIR}/../../Applications/Platforms/WebAssembly/OrthancStoneWebAssemblyParameters.cmake)
51 51
52 SET(ENABLE_DCMTK OFF) # Not necessary 52 SET(ENABLE_DCMTK ON) # Necessary for the tests of the Orthanc framework
53 SET(ENABLE_PUGIXML ON) # Necessary for the tests of the Orthanc framework
53 SET(ENABLE_GOOGLE_TEST OFF) 54 SET(ENABLE_GOOGLE_TEST OFF)
54 SET(ENABLE_LOCALE ON) # Necessary for text rendering 55 SET(ENABLE_LOCALE ON) # Necessary for text rendering
56 SET(ENABLE_LUA ON) # Necessary for the tests of the Orthanc framework
55 SET(ORTHANC_SANDBOXED ON) 57 SET(ORTHANC_SANDBOXED ON)
56
57 # Needed to redirect std::cout to a <div>
58 set(ORTHANC_ENABLE_LOGGING_STDIO OFF CACHE INTERNAL "")
59 58
60 # this will set up the build system for Stone of Orthanc and will 59 # this will set up the build system for Stone of Orthanc and will
61 # populate the ORTHANC_STONE_SOURCES CMake variable 60 # populate the ORTHANC_STONE_SOURCES CMake variable
62 include(${CMAKE_SOURCE_DIR}/../../Applications/Platforms/WebAssembly/OrthancStoneWebAssemblyConfiguration.cmake) 61 include(${CMAKE_SOURCE_DIR}/../../Applications/Platforms/WebAssembly/OrthancStoneWebAssemblyConfiguration.cmake)
63 62
73 include(${ORTHANC_STONE_ROOT}/../Resources/Orthanc/CMake/DownloadPackage.cmake) 72 include(${ORTHANC_STONE_ROOT}/../Resources/Orthanc/CMake/DownloadPackage.cmake)
74 include(${ORTHANC_STONE_ROOT}/../Resources/Orthanc/CMake/GoogleTestConfiguration.cmake) 73 include(${ORTHANC_STONE_ROOT}/../Resources/Orthanc/CMake/GoogleTestConfiguration.cmake)
75 74
76 75
77 include(${CMAKE_SOURCE_DIR}/../UnitTestsSources.cmake) 76 include(${CMAKE_SOURCE_DIR}/../UnitTestsSources.cmake)
78 add_executable(UnitTests ${UNIT_TESTS_SOURCES}) 77 add_executable(UnitTests
78 # Testing Stone
79 ${UNIT_TESTS_SOURCES}
80
81 # Testing the Orthanc Framework
82 ${ORTHANC_FRAMEWORK_ROOT}/../UnitTestsSources/DicomMapTests.cpp
83 ${ORTHANC_FRAMEWORK_ROOT}/../UnitTestsSources/FrameworkTests.cpp
84 ${ORTHANC_FRAMEWORK_ROOT}/../UnitTestsSources/FromDcmtkTests.cpp
85 ${ORTHANC_FRAMEWORK_ROOT}/../UnitTestsSources/ImageProcessingTests.cpp
86 ${ORTHANC_FRAMEWORK_ROOT}/../UnitTestsSources/ImageTests.cpp
87 ${ORTHANC_FRAMEWORK_ROOT}/../UnitTestsSources/JpegLosslessTests.cpp
88 ${ORTHANC_FRAMEWORK_ROOT}/../UnitTestsSources/LoggingTests.cpp
89 ${ORTHANC_FRAMEWORK_ROOT}/../UnitTestsSources/LuaTests.cpp
90 ${ORTHANC_FRAMEWORK_ROOT}/../UnitTestsSources/RestApiTests.cpp
91 ${ORTHANC_FRAMEWORK_ROOT}/../UnitTestsSources/StreamTests.cpp
92 ${ORTHANC_FRAMEWORK_ROOT}/../UnitTestsSources/ToolboxTests.cpp
93
94 # Tests that are not compatible with WebAssembly
95
96 # ${ORTHANC_FRAMEWORK_ROOT}/../UnitTestsSources/FileStorageTests.cpp
97 # ${ORTHANC_FRAMEWORK_ROOT}/../UnitTestsSources/JobsTests.cpp
98 # ${ORTHANC_FRAMEWORK_ROOT}/../UnitTestsSources/MemoryCacheTests.cpp
99 # ${ORTHANC_FRAMEWORK_ROOT}/../UnitTestsSources/SQLiteChromiumTests.cpp
100 # ${ORTHANC_FRAMEWORK_ROOT}/../UnitTestsSources/SQLiteTests.cpp
101 # ${ORTHANC_FRAMEWORK_ROOT}/../UnitTestsSources/ZipTests.cpp
102 )
79 103
80 104
81 # Declare installation files for the module 105 # Declare installation files for the module
82 # --------------------------------------------------------------- 106 # ---------------------------------------------------------------
83 install( 107 install(