Mercurial > hg > orthanc
comparison CMakeLists.txt @ 571:ec2c2411d4db laaw
versioning
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 25 Sep 2013 15:03:24 +0200 |
parents | 86c5bb651bfa |
children | 8fb9867d8089 |
comparison
equal
deleted
inserted
replaced
570:86c5bb651bfa | 571:ec2c2411d4db |
---|---|
281 endif() | 281 endif() |
282 else() | 282 else() |
283 # Nothing to do if using Visual Studio | 283 # Nothing to do if using Visual Studio |
284 endif() | 284 endif() |
285 | 285 |
286 if (${CMAKE_SIZEOF_VOID_P} EQUAL 4) | |
287 set(CMAKE_SHARED_LIBRARY_SUFFIX "_Windows32.dll") | |
288 list(APPEND ORTHANC_CPP_CLIENT_AUX ${ORTHANC_ROOT}/OrthancCppClient/Package/AUTOGENERATED/Windows32.rc) | |
289 elseif (${CMAKE_SIZEOF_VOID_P} EQUAL 8) | |
290 set(CMAKE_SHARED_LIBRARY_SUFFIX "_Windows64.dll") | |
291 list(APPEND ORTHANC_CPP_CLIENT_AUX ${ORTHANC_ROOT}/OrthancCppClient/Package/AUTOGENERATED/Windows64.rc) | |
292 else() | |
293 message(FATAL_ERROR "Support your platform here") | |
294 endif() | |
295 | |
286 else() | 296 else() |
287 set(ORTHANC_CPP_CLIENT_AUX ${OPENSSL_SOURCES}) | 297 set(ORTHANC_CPP_CLIENT_AUX ${OPENSSL_SOURCES}) |
288 endif() | 298 endif() |
289 | 299 |
290 add_library(OrthancClient SHARED | 300 add_library(OrthancClient SHARED |
329 message(FATAL_ERROR "Support your platform here") | 339 message(FATAL_ERROR "Support your platform here") |
330 endif() | 340 endif() |
331 | 341 |
332 install( | 342 install( |
333 TARGETS OrthancClient | 343 TARGETS OrthancClient |
334 RUNTIME DESTINATION lib | 344 RUNTIME DESTINATION lib # Destination for Windows |
335 LIBRARY DESTINATION lib | 345 LIBRARY DESTINATION lib # Destination for Linux |
336 ) | 346 ) |
337 | 347 |
338 install( | 348 install( |
339 FILES ${ORTHANC_ROOT}/OrthancCppClient/Package/AUTOGENERATED/OrthancCppClient.h | 349 FILES ${ORTHANC_ROOT}/OrthancCppClient/Package/AUTOGENERATED/OrthancCppClient.h |
340 DESTINATION include/orthanc | 350 DESTINATION include/orthanc |