Mercurial > hg > orthanc-stone
annotate OrthancStone/UnitTestsSources/CMakeLists.txt @ 1546:94750ef63ad5
support of Orthanc framework shared library
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 11 Aug 2020 17:09:59 +0200 |
parents | ae17c8c8838f |
children | e04c8fec263e |
rev | line source |
---|---|
1541
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1 cmake_minimum_required(VERSION 2.8.10) |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2 |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
3 project(UnitTests) |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
4 |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
5 include(${CMAKE_SOURCE_DIR}/../Resources/CMake/OrthancStoneParameters.cmake) |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
6 |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
7 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system") |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
8 set(ORTHANC_BOOST_COMPONENTS program_options) |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
9 |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
10 set(USE_SYSTEM_GOOGLE_TEST ON CACHE BOOL "Use the system version of Google Test") |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
11 set(USE_GOOGLE_TEST_DEBIAN_PACKAGE OFF CACHE BOOL "Use the sources of Google Test shipped with libgtest-dev (Debian only)") |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
12 mark_as_advanced(USE_GOOGLE_TEST_DEBIAN_PACKAGE) |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
13 include(${ORTHANC_STONE_ROOT}/Resources/Orthanc/CMake/DownloadPackage.cmake) |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
14 include(${ORTHANC_STONE_ROOT}/Resources/Orthanc/CMake/GoogleTestConfiguration.cmake) |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
15 |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
16 else() |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
17 set(ENABLE_GOOGLE_TEST ON) |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
18 endif() |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
19 |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
20 set(ENABLE_OPENGL OFF) |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
21 |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
22 include(${ORTHANC_STONE_ROOT}/Resources/CMake/OrthancStoneConfiguration.cmake) |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
23 |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
24 add_executable(UnitTests |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
25 ${AUTOGENERATED_SOURCES} |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
26 ${BOOST_EXTENDED_SOURCES} |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
27 ${GOOGLE_TEST_SOURCES} |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
28 ${ORTHANC_STONE_ROOT}/UnitTestsSources/GenericToolboxTests.cpp |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
29 ${ORTHANC_STONE_ROOT}/UnitTestsSources/ImageToolboxTests.cpp |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
30 ${ORTHANC_STONE_ROOT}/UnitTestsSources/PixelTestPatternsTests.cpp |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
31 ${ORTHANC_STONE_ROOT}/UnitTestsSources/SortedFramesTests.cpp |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
32 ${ORTHANC_STONE_ROOT}/UnitTestsSources/TestCommands.cpp |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
33 ${ORTHANC_STONE_ROOT}/UnitTestsSources/TestMessageBroker.cpp |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
34 ${ORTHANC_STONE_ROOT}/UnitTestsSources/TestStrategy.cpp |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
35 ${ORTHANC_STONE_ROOT}/UnitTestsSources/TestStructureSet.cpp |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
36 ${ORTHANC_STONE_ROOT}/UnitTestsSources/UnitTestsMain.cpp |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
37 ${ORTHANC_STONE_SOURCES} |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
38 ) |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
39 |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
40 target_link_libraries(UnitTests ${DCMTK_LIBRARIES}) |