comparison CMakeLists.txt @ 522:81cb140941a5 laaw

compiling the dll
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 19 Jul 2013 16:41:48 +0200
parents cd7d4842851c
children ff8bee6459cd
comparison
equal deleted inserted replaced
520:cd7d4842851c 522:81cb140941a5
271 271
272 ##################################################################### 272 #####################################################################
273 ## Create the standalone DLL containing the Orthanc Client API 273 ## Create the standalone DLL containing the Orthanc Client API
274 ##################################################################### 274 #####################################################################
275 275
276 # include_directories(${ORTHANC_ROOT}/OrthancCppClient/Package/Laaw) 276 include_directories(${ORTHANC_ROOT}/OrthancCppClient/Package/Laaw)
277 277
278 # if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") 278 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
279 # if (${CMAKE_SIZEOF_VOID_P} EQUAL 4) 279 if (${CMAKE_SIZEOF_VOID_P} EQUAL 4)
280 # set(ORTHANC_CPP_CLIENT_DEF ${ORTHANC_ROOT}/OrthancCppClient/Package/Build/Windows32.def) 280 set(ORTHANC_CPP_CLIENT_DEF ${ORTHANC_ROOT}/OrthancCppClient/Package/Build/Windows32.def)
281 # elseif (${CMAKE_SIZEOF_VOID_P} EQUAL 8) 281 elseif (${CMAKE_SIZEOF_VOID_P} EQUAL 8)
282 # set(ORTHANC_CPP_CLIENT_DEF ${ORTHANC_ROOT}/OrthancCppClient/Package/Build/Windows64.def) 282 set(ORTHANC_CPP_CLIENT_DEF ${ORTHANC_ROOT}/OrthancCppClient/Package/Build/Windows64.def)
283 # else() 283 else()
284 # message(FATAL_ERROR "Support your platform here") 284 message(FATAL_ERROR "Support your platform here")
285 # endif() 285 endif()
286 # endif() 286 endif()
287 287
288 # add_library(OrthancCppClient SHARED 288 add_library(OrthancCppClient SHARED
289 # ${ORTHANC_ROOT}/Core/OrthancException.cpp 289 ${ORTHANC_ROOT}/Core/OrthancException.cpp
290 # ${ORTHANC_ROOT}/Core/Enumerations.cpp 290 ${ORTHANC_ROOT}/Core/Enumerations.cpp
291 # ${ORTHANC_ROOT}/Core/Toolbox.cpp 291 ${ORTHANC_ROOT}/Core/Toolbox.cpp
292 # ${ORTHANC_ROOT}/Core/HttpClient.cpp 292 ${ORTHANC_ROOT}/Core/HttpClient.cpp
293 # ${ORTHANC_ROOT}/Core/MultiThreading/ArrayFilledByThreads.cpp 293 ${ORTHANC_ROOT}/Core/MultiThreading/ArrayFilledByThreads.cpp
294 # ${ORTHANC_ROOT}/Core/MultiThreading/ThreadedCommandProcessor.cpp 294 ${ORTHANC_ROOT}/Core/MultiThreading/ThreadedCommandProcessor.cpp
295 # ${ORTHANC_ROOT}/Core/MultiThreading/SharedMessageQueue.cpp 295 ${ORTHANC_ROOT}/Core/MultiThreading/SharedMessageQueue.cpp
296 # ${ORTHANC_ROOT}/Core/FileFormats/PngReader.cpp 296 ${ORTHANC_ROOT}/Core/FileFormats/PngReader.cpp
297 # ${ORTHANC_ROOT}/OrthancCppClient/OrthancConnection.cpp 297 ${ORTHANC_ROOT}/OrthancCppClient/OrthancConnection.cpp
298 # ${ORTHANC_ROOT}/OrthancCppClient/Series.cpp 298 ${ORTHANC_ROOT}/OrthancCppClient/Series.cpp
299 # ${ORTHANC_ROOT}/OrthancCppClient/Study.cpp 299 ${ORTHANC_ROOT}/OrthancCppClient/Study.cpp
300 # ${ORTHANC_ROOT}/OrthancCppClient/Instance.cpp 300 ${ORTHANC_ROOT}/OrthancCppClient/Instance.cpp
301 # ${ORTHANC_ROOT}/OrthancCppClient/Patient.cpp 301 ${ORTHANC_ROOT}/OrthancCppClient/Patient.cpp
302 # ${ORTHANC_ROOT}/OrthancCppClient/Package/SharedLibrary.cpp 302 ${ORTHANC_ROOT}/OrthancCppClient/Package/SharedLibrary.cpp
303 # ${ORTHANC_ROOT}/Resources/sha1/sha1.cpp 303 ${ORTHANC_ROOT}/Resources/sha1/sha1.cpp
304 # ${ORTHANC_ROOT}/Resources/md5/md5.c 304 ${ORTHANC_ROOT}/Resources/md5/md5.c
305 # ${ORTHANC_ROOT}/Resources/base64/base64.cpp 305 ${ORTHANC_ROOT}/Resources/base64/base64.cpp
306 # ${ORTHANC_CPP_CLIENT_DEF} 306 ${ORTHANC_CPP_CLIENT_DEF}
307 # ${THIRD_PARTY_SOURCES} 307 ${THIRD_PARTY_SOURCES}
308 # ${OPENSSL_SOURCES} 308 ${OPENSSL_SOURCES}
309 # ${CURL_SOURCES} 309 ${CURL_SOURCES}
310 # ) 310 )
311 311
312 # if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") 312 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
313 # set_target_properties(OrthancCppClient 313 set_target_properties(OrthancCppClient
314 # PROPERTIES LINK_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined -Wl,--version-script=${ORTHANC_ROOT}/OrthancCppClient/Package/Laaw/VersionScript.map" 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 # ) 315 )
316 # target_link_libraries(OrthancCppClient pthread) 316 target_link_libraries(OrthancCppClient pthread)
317 # elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") 317 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
318 # if (${CMAKE_COMPILER_IS_GNUCXX}) 318 if (${CMAKE_COMPILER_IS_GNUCXX})
319 # set_target_properties(OrthancCppClient 319 set_target_properties(OrthancCppClient
320 # PROPERTIES LINK_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--allow-multiple-definition -static-libgcc -static-libstdc++" 320 PROPERTIES LINK_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--allow-multiple-definition -static-libgcc -static-libstdc++"
321 # ) 321 )
322 # target_link_libraries(OrthancCppClient ws2_32) 322 target_link_libraries(OrthancCppClient ws2_32)
323 # else() 323 else()
324 # message(FATAL_ERROR "Support Visual Studio here") 324 message(FATAL_ERROR "Support Visual Studio here")
325 # endif() 325 endif()
326 # else() 326 else()
327 # message(FATAL_ERROR "Support your platform here") 327 message(FATAL_ERROR "Support your platform here")
328 # endif() 328 endif()
329 329
330 330
331 331
332 ##################################################################### 332 #####################################################################
333 ## Generate the documentation if Doxygen is present 333 ## Generate the documentation if Doxygen is present