Mercurial > hg > orthanc
comparison CMakeLists.txt @ 576:bf2fda1c6760 laaw
fix paths
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 30 Sep 2013 13:54:32 +0200 |
parents | 8fb9867d8089 |
children | 2737806bcf60 |
comparison
equal
deleted
inserted
replaced
575:6f01dd71b601 | 576:bf2fda1c6760 |
---|---|
263 ##################################################################### | 263 ##################################################################### |
264 ## Create the standalone DLL containing the Orthanc Client API | 264 ## Create the standalone DLL containing the Orthanc Client API |
265 ##################################################################### | 265 ##################################################################### |
266 | 266 |
267 if (BUILD_CLIENT_LIBRARY) | 267 if (BUILD_CLIENT_LIBRARY) |
268 include_directories(${ORTHANC_ROOT}/OrthancCppClient/Package/Laaw) | 268 include_directories(${ORTHANC_ROOT}/OrthancCppClient/SharedLibrary/Laaw) |
269 | 269 |
270 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") | 270 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") |
271 if (CMAKE_CROSSCOMPILING) | 271 if (CMAKE_CROSSCOMPILING) |
272 # Remove the default "lib" prefix from "libOrthancClient.dll" if cross-compiling | 272 # Remove the default "lib" prefix from "libOrthancClient.dll" if cross-compiling |
273 set(CMAKE_SHARED_LIBRARY_PREFIX "") | 273 set(CMAKE_SHARED_LIBRARY_PREFIX "") |
274 | 274 |
275 if (${CMAKE_SIZEOF_VOID_P} EQUAL 4) | 275 if (${CMAKE_SIZEOF_VOID_P} EQUAL 4) |
276 set(ORTHANC_CPP_CLIENT_AUX ${ORTHANC_ROOT}/OrthancCppClient/Package/AUTOGENERATED/Windows32.def) | 276 set(ORTHANC_CPP_CLIENT_AUX ${ORTHANC_ROOT}/OrthancCppClient/SharedLibrary/AUTOGENERATED/Windows32.def) |
277 elseif (${CMAKE_SIZEOF_VOID_P} EQUAL 8) | 277 elseif (${CMAKE_SIZEOF_VOID_P} EQUAL 8) |
278 set(ORTHANC_CPP_CLIENT_AUX ${ORTHANC_ROOT}/OrthancCppClient/Package/AUTOGENERATED/Windows64.def) | 278 set(ORTHANC_CPP_CLIENT_AUX ${ORTHANC_ROOT}/OrthancCppClient/SharedLibrary/AUTOGENERATED/Windows64.def) |
279 else() | 279 else() |
280 message(FATAL_ERROR "Support your platform here") | 280 message(FATAL_ERROR "Support your platform here") |
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) | 286 if (${CMAKE_SIZEOF_VOID_P} EQUAL 4) |
287 set(CMAKE_SHARED_LIBRARY_SUFFIX "_Windows32.dll") | 287 set(CMAKE_SHARED_LIBRARY_SUFFIX "_Windows32.dll") |
288 list(APPEND ORTHANC_CPP_CLIENT_AUX ${ORTHANC_ROOT}/OrthancCppClient/Package/AUTOGENERATED/Windows32.rc) | 288 list(APPEND ORTHANC_CPP_CLIENT_AUX ${ORTHANC_ROOT}/OrthancCppClient/SharedLibrary/AUTOGENERATED/Windows32.rc) |
289 elseif (${CMAKE_SIZEOF_VOID_P} EQUAL 8) | 289 elseif (${CMAKE_SIZEOF_VOID_P} EQUAL 8) |
290 set(CMAKE_SHARED_LIBRARY_SUFFIX "_Windows64.dll") | 290 set(CMAKE_SHARED_LIBRARY_SUFFIX "_Windows64.dll") |
291 list(APPEND ORTHANC_CPP_CLIENT_AUX ${ORTHANC_ROOT}/OrthancCppClient/Package/AUTOGENERATED/Windows64.rc) | 291 list(APPEND ORTHANC_CPP_CLIENT_AUX ${ORTHANC_ROOT}/OrthancCppClient/SharedLibrary/AUTOGENERATED/Windows64.rc) |
292 else() | 292 else() |
293 message(FATAL_ERROR "Support your platform here") | 293 message(FATAL_ERROR "Support your platform here") |
294 endif() | 294 endif() |
295 | 295 |
296 else() | 296 else() |
309 ${ORTHANC_ROOT}/OrthancCppClient/OrthancConnection.cpp | 309 ${ORTHANC_ROOT}/OrthancCppClient/OrthancConnection.cpp |
310 ${ORTHANC_ROOT}/OrthancCppClient/Series.cpp | 310 ${ORTHANC_ROOT}/OrthancCppClient/Series.cpp |
311 ${ORTHANC_ROOT}/OrthancCppClient/Study.cpp | 311 ${ORTHANC_ROOT}/OrthancCppClient/Study.cpp |
312 ${ORTHANC_ROOT}/OrthancCppClient/Instance.cpp | 312 ${ORTHANC_ROOT}/OrthancCppClient/Instance.cpp |
313 ${ORTHANC_ROOT}/OrthancCppClient/Patient.cpp | 313 ${ORTHANC_ROOT}/OrthancCppClient/Patient.cpp |
314 ${ORTHANC_ROOT}/OrthancCppClient/Package/SharedLibrary.cpp | 314 ${ORTHANC_ROOT}/OrthancCppClient/SharedLibrary/SharedLibrary.cpp |
315 ${ORTHANC_ROOT}/Resources/sha1/sha1.cpp | 315 ${ORTHANC_ROOT}/Resources/sha1/sha1.cpp |
316 ${ORTHANC_ROOT}/Resources/md5/md5.c | 316 ${ORTHANC_ROOT}/Resources/md5/md5.c |
317 ${ORTHANC_ROOT}/Resources/base64/base64.cpp | 317 ${ORTHANC_ROOT}/Resources/base64/base64.cpp |
318 ${ORTHANC_CPP_CLIENT_AUX} | 318 ${ORTHANC_CPP_CLIENT_AUX} |
319 ${THIRD_PARTY_SOURCES} | 319 ${THIRD_PARTY_SOURCES} |
320 ${CURL_SOURCES} | 320 ${CURL_SOURCES} |
321 ) | 321 ) |
322 | 322 |
323 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") | 323 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") |
324 set_target_properties(OrthancClient | 324 set_target_properties(OrthancClient |
325 PROPERTIES LINK_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined -Wl,--as-needed -Wl,--version-script=${ORTHANC_ROOT}/OrthancCppClient/Package/Laaw/VersionScript.map" | 325 PROPERTIES LINK_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined -Wl,--as-needed -Wl,--version-script=${ORTHANC_ROOT}/OrthancCppClient/SharedLibrary/Laaw/VersionScript.map" |
326 ) | 326 ) |
327 target_link_libraries(OrthancClient pthread) | 327 target_link_libraries(OrthancClient pthread) |
328 | 328 |
329 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") | 329 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") |
330 target_link_libraries(OrthancClient OpenSSL ws2_32) | 330 target_link_libraries(OrthancClient OpenSSL ws2_32) |
344 RUNTIME DESTINATION lib # Destination for Windows | 344 RUNTIME DESTINATION lib # Destination for Windows |
345 LIBRARY DESTINATION lib # Destination for Linux | 345 LIBRARY DESTINATION lib # Destination for Linux |
346 ) | 346 ) |
347 | 347 |
348 install( | 348 install( |
349 FILES ${ORTHANC_ROOT}/OrthancCppClient/Package/AUTOGENERATED/OrthancCppClient.h | 349 FILES ${ORTHANC_ROOT}/OrthancCppClient/SharedLibrary/AUTOGENERATED/OrthancCppClient.h |
350 DESTINATION include/orthanc | 350 DESTINATION include/orthanc |
351 ) | 351 ) |
352 endif() | 352 endif() |
353 | 353 |
354 | 354 |