Mercurial > hg > orthanc
annotate Resources/CMake/MongooseConfiguration.cmake @ 148:0fadb04728ba
fix
author | jodogne |
---|---|
date | Thu, 11 Oct 2012 22:02:38 +0200 |
parents | 7593b57dc1bf |
children | b45bc565d82a 9aa8ecbeeeb9 61ab5fa36754 |
rev | line source |
---|---|
8 | 1 SET(MONGOOSE_SOURCES_DIR ${CMAKE_BINARY_DIR}/mongoose) |
2 DownloadPackage("http://mongoose.googlecode.com/files/mongoose-3.1.tgz" "${MONGOOSE_SOURCES_DIR}" "" "") | |
3 | |
4 # Patch mongoose | |
5 execute_process( | |
102
7593b57dc1bf
switch to google log
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
29
diff
changeset
|
6 COMMAND patch mongoose.c ${CMAKE_SOURCE_DIR}/Resources/Patches/mongoose-patch.diff |
8 | 7 WORKING_DIRECTORY ${MONGOOSE_SOURCES_DIR} |
8 ) | |
9 | |
10 include_directories( | |
11 ${MONGOOSE_SOURCES_DIR} | |
12 ) | |
13 | |
14 list(APPEND THIRD_PARTY_SOURCES | |
15 ${MONGOOSE_SOURCES_DIR}/mongoose.c | |
16 ) | |
17 | |
26 | 18 |
23 | 19 if (${ENABLE_SSL}) |
20 add_definitions( | |
26 | 21 -DNO_SSL_DL=1 |
23 | 22 ) |
23 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") | |
24 link_libraries(dl) | |
25 endif() | |
26 | |
27 else() | |
28 add_definitions( | |
29 -DNO_SSL=1 # Remove SSL support from mongoose | |
30 ) | |
31 endif() | |
32 | |
8 | 33 source_group(ThirdParty\\Mongoose REGULAR_EXPRESSION ${MONGOOSE_SOURCES_DIR}/.*) |