annotate Resources/CMake/MongooseConfiguration.cmake @ 22:1bc6327d1de3

MD5 sum
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 27 Aug 2012 11:45:53 +0200
parents 3a584803783e
children 62bd05fe4b7c
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
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
18 add_definitions(
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
19 # Remove SSL support from mongoose
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
20 -DNO_SSL=1
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
21 )
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
22
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
23 source_group(ThirdParty\\Mongoose REGULAR_EXPRESSION ${MONGOOSE_SOURCES_DIR}/.*)