Mercurial > hg > orthanc-stone
comparison Applications/Samples/Sdl/CMakeLists.txt @ 2074:e160c324c32a
added DefineSourceBasenameForTarget is SDL samples
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 10 Jul 2023 22:06:49 +0200 |
parents | 184b0aeae1af |
children | 07964689cb0b |
comparison
equal
deleted
inserted
replaced
2073:ae56f7ea0e90 | 2074:e160c324c32a |
---|---|
75 ${ORTHANC_STONE_SOURCES} | 75 ${ORTHANC_STONE_SOURCES} |
76 ${AUTOGENERATED_SOURCES} | 76 ${AUTOGENERATED_SOURCES} |
77 ${BOOST_EXTENDED_SOURCES} | 77 ${BOOST_EXTENDED_SOURCES} |
78 ) | 78 ) |
79 | 79 |
80 DefineSourceBasenameForTarget(OrthancStone) | |
81 | |
80 message(${AUTOGENERATED_SOURCES}) | 82 message(${AUTOGENERATED_SOURCES}) |
81 | 83 |
82 | 84 |
83 | 85 |
84 ############################# | 86 ############################# |
92 ../Common/RtViewerView.cpp | 94 ../Common/RtViewerView.cpp |
93 ../Common/RtViewerView.h | 95 ../Common/RtViewerView.h |
94 ../Common/SampleHelpers.h | 96 ../Common/SampleHelpers.h |
95 ) | 97 ) |
96 | 98 |
99 DefineSourceBasenameForTarget(RtViewerSdl) | |
100 | |
97 target_link_libraries(RtViewerSdl OrthancStone ${DCMTK_LIBRARIES}) | 101 target_link_libraries(RtViewerSdl OrthancStone ${DCMTK_LIBRARIES}) |
98 | 102 |
99 ############################# | 103 ############################# |
100 project(SdlSimpleViewer) | 104 project(SdlSimpleViewer) |
101 | 105 |
104 ../Common/SampleHelpers.h | 108 ../Common/SampleHelpers.h |
105 SingleFrameViewer/SdlSimpleViewerApplication.h | 109 SingleFrameViewer/SdlSimpleViewerApplication.h |
106 SingleFrameViewer/SdlSimpleViewer.cpp | 110 SingleFrameViewer/SdlSimpleViewer.cpp |
107 ) | 111 ) |
108 | 112 |
113 DefineSourceBasenameForTarget(SdlSimpleViewer) | |
114 | |
109 target_link_libraries(SdlSimpleViewer OrthancStone ${DCMTK_LIBRARIES}) | 115 target_link_libraries(SdlSimpleViewer OrthancStone ${DCMTK_LIBRARIES}) |
110 | 116 |
111 ############################# | 117 ############################# |
112 project(UnitTests) | 118 project(UnitTests) |
113 | 119 |
114 add_executable(UnitTests | 120 add_executable(UnitTests |
115 ${GOOGLE_TEST_SOURCES} | 121 ${GOOGLE_TEST_SOURCES} |
116 ${UNIT_TESTS_SOURCES} | 122 ${UNIT_TESTS_SOURCES} |
117 ) | 123 ) |
124 | |
125 DefineSourceBasenameForTarget(UnitTests) | |
118 | 126 |
119 target_link_libraries(UnitTests OrthancStone) | 127 target_link_libraries(UnitTests OrthancStone) |
120 | 128 |
121 add_custom_command( | 129 add_custom_command( |
122 TARGET UnitTests | 130 TARGET UnitTests |