Mercurial > hg > orthanc
comparison CMakeLists.txt @ 570:86c5bb651bfa laaw
fix
author | jodogne |
---|---|
date | Wed, 25 Sep 2013 14:01:01 +0200 |
parents | 701d748cf327 |
children | ec2c2411d4db |
comparison
equal
deleted
inserted
replaced
569:701d748cf327 | 570:86c5bb651bfa |
---|---|
278 set(ORTHANC_CPP_CLIENT_AUX ${ORTHANC_ROOT}/OrthancCppClient/Package/AUTOGENERATED/Windows64.def) | 278 set(ORTHANC_CPP_CLIENT_AUX ${ORTHANC_ROOT}/OrthancCppClient/Package/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 set(ORTHANC_CPP_CLIENT_AUX ${OPENSSL_SOURCES}) | 283 # Nothing to do if using Visual Studio |
284 endif() | 284 endif() |
285 | |
285 else() | 286 else() |
286 set(ORTHANC_CPP_CLIENT_AUX ${OPENSSL_SOURCES}) | 287 set(ORTHANC_CPP_CLIENT_AUX ${OPENSSL_SOURCES}) |
287 endif() | 288 endif() |
288 | 289 |
289 add_library(OrthancClient SHARED | 290 add_library(OrthancClient SHARED |
314 PROPERTIES LINK_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined -Wl,--as-needed -Wl,--version-script=${ORTHANC_ROOT}/OrthancCppClient/Package/Laaw/VersionScript.map" | 315 PROPERTIES LINK_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined -Wl,--as-needed -Wl,--version-script=${ORTHANC_ROOT}/OrthancCppClient/Package/Laaw/VersionScript.map" |
315 ) | 316 ) |
316 target_link_libraries(OrthancClient pthread) | 317 target_link_libraries(OrthancClient pthread) |
317 | 318 |
318 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") | 319 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") |
320 target_link_libraries(OrthancClient OpenSSL ws2_32) | |
321 | |
319 if (CMAKE_CROSSCOMPILING) | 322 if (CMAKE_CROSSCOMPILING) |
320 target_link_libraries(OrthancClient OpenSSL ws2_32) | |
321 set_target_properties(OrthancClient | 323 set_target_properties(OrthancClient |
322 PROPERTIES LINK_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--allow-multiple-definition -static-libgcc -static-libstdc++" | 324 PROPERTIES LINK_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--allow-multiple-definition -static-libgcc -static-libstdc++" |
323 ) | 325 ) |
324 else() | |
325 message(FATAL_ERROR "Support Visual Studio here") | |
326 endif() | 326 endif() |
327 | 327 |
328 else() | 328 else() |
329 message(FATAL_ERROR "Support your platform here") | 329 message(FATAL_ERROR "Support your platform here") |
330 endif() | 330 endif() |