Mercurial > hg > orthanc-stone
annotate UnitTestsSources/CMakeLists.txt @ 1587:a1405ab3a91c
reorganization
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 22 Oct 2020 16:28:41 +0200 |
parents | OrthancStone/UnitTestsSources/CMakeLists.txt@bd180f97c734 |
children | 8c5f9864545f |
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 |
1587 | 5 include(${CMAKE_SOURCE_DIR}/../OrthancStone/Resources/CMake/OrthancStoneParameters.cmake) |
1541
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) |
1584
bd180f97c734
parsing osirix annotations
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1581
diff
changeset
|
21 set(ENABLE_PUGIXML ON) |
1541
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
22 |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
23 include(${ORTHANC_STONE_ROOT}/Resources/CMake/OrthancStoneConfiguration.cmake) |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
24 |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
25 add_executable(UnitTests |
1587 | 26 ${CMAKE_SOURCE_DIR}/GenericToolboxTests.cpp |
27 ${CMAKE_SOURCE_DIR}/ImageToolboxTests.cpp | |
28 ${CMAKE_SOURCE_DIR}/PixelTestPatternsTests.cpp | |
29 ${CMAKE_SOURCE_DIR}/SortedFramesTests.cpp | |
30 ${CMAKE_SOURCE_DIR}/TestMessageBroker.cpp | |
31 ${CMAKE_SOURCE_DIR}/TestStrategy.cpp | |
32 ${CMAKE_SOURCE_DIR}/TestStructureSet.cpp | |
33 ${CMAKE_SOURCE_DIR}/UnitTestsMain.cpp | |
34 | |
1541
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
35 ${AUTOGENERATED_SOURCES} |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
36 ${BOOST_EXTENDED_SOURCES} |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
37 ${GOOGLE_TEST_SOURCES} |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
38 ${ORTHANC_STONE_SOURCES} |
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 |
ae17c8c8838f
standalone compilation of unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
41 target_link_libraries(UnitTests ${DCMTK_LIBRARIES}) |