annotate Resources/CMake/MongooseConfiguration.cmake @ 147:7e8b68dd6ace

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 11 Oct 2012 18:02:23 +0200
parents 7593b57dc1bf
children b45bc565d82a 9aa8ecbeeeb9 61ab5fa36754
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
1 SET(MONGOOSE_SOURCES_DIR ${CMAKE_BINARY_DIR}/mongoose)
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
2 DownloadPackage("http://mongoose.googlecode.com/files/mongoose-3.1.tgz" "${MONGOOSE_SOURCES_DIR}" "" "")
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
3
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
4 # Patch mongoose
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
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
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
7 WORKING_DIRECTORY ${MONGOOSE_SOURCES_DIR}
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
8 )
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
9
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
10 include_directories(
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
11 ${MONGOOSE_SOURCES_DIR}
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
12 )
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
13
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
14 list(APPEND THIRD_PARTY_SOURCES
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
15 ${MONGOOSE_SOURCES_DIR}/mongoose.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
16 )
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
17
26
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 23
diff changeset
18
23
62bd05fe4b7c support for ssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
19 if (${ENABLE_SSL})
62bd05fe4b7c support for ssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
20 add_definitions(
26
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 23
diff changeset
21 -DNO_SSL_DL=1
23
62bd05fe4b7c support for ssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
22 )
62bd05fe4b7c support for ssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
23 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
62bd05fe4b7c support for ssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
24 link_libraries(dl)
62bd05fe4b7c support for ssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
25 endif()
62bd05fe4b7c support for ssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
26
62bd05fe4b7c support for ssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
27 else()
62bd05fe4b7c support for ssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
28 add_definitions(
62bd05fe4b7c support for ssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
29 -DNO_SSL=1 # Remove SSL support from mongoose
62bd05fe4b7c support for ssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
30 )
62bd05fe4b7c support for ssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
31 endif()
62bd05fe4b7c support for ssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
32
8
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
33 source_group(ThirdParty\\Mongoose REGULAR_EXPRESSION ${MONGOOSE_SOURCES_DIR}/.*)