annotate Resources/CMake/MongooseConfiguration.cmake @ 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 7593b57dc1bf
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(
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
6 COMMAND patch mongoose.c ${CMAKE_SOURCE_DIR}/Resources/mongoose-patch.diff
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
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
34 source_group(ThirdParty\\Mongoose REGULAR_EXPRESSION ${MONGOOSE_SOURCES_DIR}/.*)