Mercurial > hg > orthanc-webviewer
comparison CMakeLists.txt @ 8:49fa9c774465 OrthancWebViewer-1.0
versioning
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 27 Feb 2015 12:08:14 +0100 |
parents | fb9aca75eafd |
children | 2cb2015b9934 |
comparison
equal
deleted
inserted
replaced
7:fb9aca75eafd | 8:49fa9c774465 |
---|---|
17 | 17 |
18 | 18 |
19 cmake_minimum_required(VERSION 2.8) | 19 cmake_minimum_required(VERSION 2.8) |
20 | 20 |
21 project(OrthancPostgreSQL) | 21 project(OrthancPostgreSQL) |
22 | |
23 set(ORTHANC_WEBVIEWER_VERSION "1.0") | |
24 | |
22 | 25 |
23 # Parameters of the build | 26 # Parameters of the build |
24 set(STATIC_BUILD OFF CACHE BOOL "Static build of the third-party libraries (necessary for Windows)") | 27 set(STATIC_BUILD OFF CACHE BOOL "Static build of the third-party libraries (necessary for Windows)") |
25 SET(STANDALONE_BUILD ON CACHE BOOL "Standalone build (all the resources are embedded, necessary for releases)") | 28 SET(STANDALONE_BUILD ON CACHE BOOL "Standalone build (all the resources are embedded, necessary for releases)") |
26 set(ALLOW_DOWNLOADS OFF CACHE BOOL "Allow CMake to download packages") | 29 set(ALLOW_DOWNLOADS OFF CACHE BOOL "Allow CMake to download packages") |
177 add_dependencies(OrthancWebViewer GDCM) | 180 add_dependencies(OrthancWebViewer GDCM) |
178 endif() | 181 endif() |
179 | 182 |
180 target_link_libraries(OrthancWebViewer ${GDCM_LIBRARIES} ${OS_LIBRARIES}) | 183 target_link_libraries(OrthancWebViewer ${GDCM_LIBRARIES} ${OS_LIBRARIES}) |
181 | 184 |
185 message("Setting the version of the library to ${ORTHANC_WEBVIEWER_VERSION}") | |
186 set_target_properties(OrthancWebViewer PROPERTIES | |
187 VERSION ${ORTHANC_WEBVIEWER_VERSION} | |
188 SOVERSION ${ORTHANC_WEBVIEWER_VERSION}) | |
189 | |
182 install( | 190 install( |
183 TARGETS OrthancWebViewer | 191 TARGETS OrthancWebViewer |
184 RUNTIME DESTINATION lib # Destination for Windows | 192 RUNTIME DESTINATION lib # Destination for Windows |
185 LIBRARY DESTINATION lib # Destination for Linux | 193 LIBRARY DESTINATION lib # Destination for Linux |
186 ) | 194 ) |
187 | 195 |
188 add_executable(UnitTests | 196 add_executable(UnitTests |
189 ${CORE_SOURCES} | 197 ${CORE_SOURCES} |
190 ${GTEST_SOURCES} | 198 ${GTEST_SOURCES} |
191 UnitTestsSources/UnitTestsMain.cpp | 199 UnitTestsSources/UnitTestsMain.cpp |