Mercurial > hg > orthanc-stone
comparison UnitTestsSources/CMakeLists.txt @ 1405:e4fe346c021e
Merge
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Wed, 29 Apr 2020 22:06:58 +0200 |
parents | 5630c2fb7b0f |
children |
comparison
equal
deleted
inserted
replaced
1404:3e644f6fadd4 | 1405:e4fe346c021e |
---|---|
1 cmake_minimum_required(VERSION 2.8.3) | 1 cmake_minimum_required(VERSION 2.8.3) |
2 project(OrthancStone) | 2 project(OrthancStone) |
3 | |
4 set(ORTHANC_FRAMEWORK_SOURCE "path") | |
5 set(ORTHANC_FRAMEWORK_ROOT ${CMAKE_CURRENT_LIST_DIR}/../../orthanc) | |
6 set(STONE_ROOT ${CMAKE_CURRENT_LIST_DIR}/../) | |
3 | 7 |
4 include(../Resources/CMake/OrthancStoneParameters.cmake) | 8 include(../Resources/CMake/OrthancStoneParameters.cmake) |
5 | 9 |
6 set(ENABLE_STONE_DEPRECATED ON) # Need deprecated classes for these samples | 10 set(ENABLE_STONE_DEPRECATED ON) # Need deprecated classes for these samples |
7 | 11 |
8 if (OPENSSL_NO_CAPIENG) | 12 if (OPENSSL_NO_CAPIENG) |
9 add_definitions(-DOPENSSL_NO_CAPIENG=1) | 13 add_definitions(-DOPENSSL_NO_CAPIENG=1) |
10 endif() | 14 endif() |
11 | 15 |
12 set(ENABLE_SDL OFF CACHE BOOL "Target SDL Native application") | 16 set(ENABLE_SDL OFF CACHE BOOL "Target SDL Native application") |
13 set(ENABLE_QT OFF CACHE BOOL "Target Qt Native application") | |
14 set(ENABLE_WASM OFF CACHE BOOL "Target WASM application") | 17 set(ENABLE_WASM OFF CACHE BOOL "Target WASM application") |
15 set(ENABLE_UNITTESTS ON | 18 set(ENABLE_UNITTESTS ON BOOL "Enable unit tests") |
16 | 19 |
17 | 20 |
18 if (ENABLE_WASM) | 21 if (ENABLE_WASM) |
19 set(ORTHANC_SANDBOXED ON) | 22 set(ORTHANC_SANDBOXED ON) |
20 if (ENABLE_SDL) | 23 if (ENABLE_SDL) |
21 message("ENABLE_SDL is only supported in native (incompatible with ENABLE_WASM)") | 24 message("ENABLE_SDL is only supported in native (incompatible with ENABLE_WASM)") |
22 endif() | 25 endif() |
23 if (ENABLE_QT) | |
24 message("ENABLE_QT is only supported in native (incompatible with ENABLE_WASM)") | |
25 endif() | |
26 set(ENABLE_NATIVE OFF) | 26 set(ENABLE_NATIVE OFF) |
27 set(ORTHANC_SANDBOXED OFF) | 27 set(ORTHANC_SANDBOXED OFF) |
28 set(ENABLE_CRYPTO_OPTIONS ON) | 28 set(ENABLE_CRYPTO_OPTIONS ON) |
29 set(ENABLE_GOOGLE_TEST ON) | 29 set(ENABLE_GOOGLE_TEST ON) |
30 set(ENABLE_WEB_CLIENT ON) | 30 set(ENABLE_WEB_CLIENT ON) |
31 elseif (ENABLE_QT OR ENABLE_SDL) | 31 elseif (ENABLE_SDL) |
32 set(ENABLE_NATIVE ON) | 32 set(ENABLE_NATIVE ON) |
33 set(ORTHANC_SANDBOXED OFF) | 33 set(ORTHANC_SANDBOXED OFF) |
34 set(ENABLE_CRYPTO_OPTIONS ON) | 34 set(ENABLE_CRYPTO_OPTIONS ON) |
35 set(ENABLE_GOOGLE_TEST ON) | 35 set(ENABLE_GOOGLE_TEST ON) |
36 set(ENABLE_WEB_CLIENT ON) | 36 set(ENABLE_WEB_CLIENT ON) |