annotate Resources/CMake/MongooseConfiguration.cmake @ 28:ef264c1e9ee5

fix msvc build
author Administrator@jodogne-w01
date Wed, 29 Aug 2012 11:07:55 +0200
parents 6ba765ecf3db
children 042ac60f5bf9
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(
62bd05fe4b7c support for ssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
21 -DPALANTIR_SSL_ENABLED=1
26
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 23
diff changeset
22 -DNO_SSL_DL=1
23
62bd05fe4b7c support for ssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
23 )
62bd05fe4b7c support for ssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
24 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
62bd05fe4b7c support for ssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
25 link_libraries(dl)
62bd05fe4b7c support for ssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
26 endif()
62bd05fe4b7c support for ssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
27
62bd05fe4b7c support for ssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
28 else()
62bd05fe4b7c support for ssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
29 add_definitions(
62bd05fe4b7c support for ssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
30 -DPALANTIR_SSL_ENABLED=0
62bd05fe4b7c support for ssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
31 -DNO_SSL=1 # Remove SSL support from mongoose
62bd05fe4b7c support for ssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
32 )
62bd05fe4b7c support for ssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
33 endif()
62bd05fe4b7c support for ssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
34
8
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
35
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
36 source_group(ThirdParty\\Mongoose REGULAR_EXPRESSION ${MONGOOSE_SOURCES_DIR}/.*)