Mercurial > hg > orthanc
comparison CMakeLists.txt @ 29:042ac60f5bf9
simplified build of curl
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 29 Aug 2012 15:27:13 +0200 |
parents | 6ba765ecf3db |
children | 0a04c70747d9 |
comparison
equal
deleted
inserted
replaced
28:ef264c1e9ee5 | 29:042ac60f5bf9 |
---|---|
26 | 26 |
27 SET(THIRD_PARTY_SOURCES | 27 SET(THIRD_PARTY_SOURCES |
28 ${CMAKE_SOURCE_DIR}/Resources/md5/md5.c | 28 ${CMAKE_SOURCE_DIR}/Resources/md5/md5.c |
29 ${CMAKE_SOURCE_DIR}/Resources/base64/base64.cpp | 29 ${CMAKE_SOURCE_DIR}/Resources/base64/base64.cpp |
30 ) | 30 ) |
31 | |
32 if (${ENABLE_SSL}) | |
33 add_definitions(-DPALANTIR_SSL_ENABLED=1) | |
34 include(${CMAKE_SOURCE_DIR}/Resources/CMake/OpenSslConfiguration.cmake) | |
35 else() | |
36 add_definitions(-DPALANTIR_SSL_ENABLED=0) | |
37 endif() | |
31 | 38 |
32 include(${CMAKE_SOURCE_DIR}/Resources/CMake/BoostConfiguration.cmake) | 39 include(${CMAKE_SOURCE_DIR}/Resources/CMake/BoostConfiguration.cmake) |
33 include(${CMAKE_SOURCE_DIR}/Resources/CMake/DcmtkConfiguration.cmake) | 40 include(${CMAKE_SOURCE_DIR}/Resources/CMake/DcmtkConfiguration.cmake) |
34 include(${CMAKE_SOURCE_DIR}/Resources/CMake/GoogleTestConfiguration.cmake) | 41 include(${CMAKE_SOURCE_DIR}/Resources/CMake/GoogleTestConfiguration.cmake) |
35 include(${CMAKE_SOURCE_DIR}/Resources/CMake/MongooseConfiguration.cmake) | 42 include(${CMAKE_SOURCE_DIR}/Resources/CMake/MongooseConfiguration.cmake) |
36 include(${CMAKE_SOURCE_DIR}/Resources/CMake/ZlibConfiguration.cmake) | 43 include(${CMAKE_SOURCE_DIR}/Resources/CMake/ZlibConfiguration.cmake) |
37 include(${CMAKE_SOURCE_DIR}/Resources/CMake/SQLiteConfiguration.cmake) | 44 include(${CMAKE_SOURCE_DIR}/Resources/CMake/SQLiteConfiguration.cmake) |
38 include(${CMAKE_SOURCE_DIR}/Resources/CMake/JsonCppConfiguration.cmake) | 45 include(${CMAKE_SOURCE_DIR}/Resources/CMake/JsonCppConfiguration.cmake) |
39 include(${CMAKE_SOURCE_DIR}/Resources/CMake/LibCurlConfiguration.cmake) | 46 include(${CMAKE_SOURCE_DIR}/Resources/CMake/LibCurlConfiguration.cmake) |
40 include(${CMAKE_SOURCE_DIR}/Resources/CMake/LibPngConfiguration.cmake) | 47 include(${CMAKE_SOURCE_DIR}/Resources/CMake/LibPngConfiguration.cmake) |
41 | |
42 if (${ENABLE_SSL}) | |
43 include(${CMAKE_SOURCE_DIR}/Resources/CMake/OpenSslConfiguration.cmake) | |
44 endif() | |
45 | 48 |
46 | 49 |
47 if (${CMAKE_COMPILER_IS_GNUCXX}) | 50 if (${CMAKE_COMPILER_IS_GNUCXX}) |
48 set(CMAKE_C_FLAGS "-Wall -Wno-long-long -Wno-implicit-function-declaration") | 51 set(CMAKE_C_FLAGS "-Wall -Wno-long-long -Wno-implicit-function-declaration") |
49 # --std=c99 makes libcurl not to compile | 52 # --std=c99 makes libcurl not to compile |