Mercurial > hg > orthanc
comparison Resources/CMake/MongooseConfiguration.cmake @ 23:62bd05fe4b7c
support for ssl
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 28 Aug 2012 10:18:34 +0200 |
parents | 3a584803783e |
children | 6ba765ecf3db |
comparison
equal
deleted
inserted
replaced
22:1bc6327d1de3 | 23:62bd05fe4b7c |
---|---|
13 | 13 |
14 list(APPEND THIRD_PARTY_SOURCES | 14 list(APPEND THIRD_PARTY_SOURCES |
15 ${MONGOOSE_SOURCES_DIR}/mongoose.c | 15 ${MONGOOSE_SOURCES_DIR}/mongoose.c |
16 ) | 16 ) |
17 | 17 |
18 add_definitions( | 18 if (${ENABLE_SSL}) |
19 # Remove SSL support from mongoose | 19 add_definitions( |
20 -DNO_SSL=1 | 20 -DPALANTIR_SSL_ENABLED=1 |
21 ) | 21 ) |
22 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") | |
23 link_libraries(dl) | |
24 endif() | |
25 | |
26 else() | |
27 add_definitions( | |
28 -DPALANTIR_SSL_ENABLED=0 | |
29 -DNO_SSL=1 # Remove SSL support from mongoose | |
30 ) | |
31 endif() | |
32 | |
22 | 33 |
23 source_group(ThirdParty\\Mongoose REGULAR_EXPRESSION ${MONGOOSE_SOURCES_DIR}/.*) | 34 source_group(ThirdParty\\Mongoose REGULAR_EXPRESSION ${MONGOOSE_SOURCES_DIR}/.*) |