ENH: fix bug where sharedforward would not work if there was a space in the path...
[cmake.git] / Utilities / cmcurl-7.19.0 / CMakeLists.txt
blob9c6156486c44bffbe60dc256e00f901827d12405
1 cmake_minimum_required(VERSION 2.4)
2 if(COMMAND CMAKE_POLICY)
3   cmake_policy(SET CMP0003 NEW)
4 endif(COMMAND CMAKE_POLICY)
5 project(CURL C)
7 include_regular_expression("^.*$")
9 # Setup package meta-data
10 set(PACKAGE "curl")
11 set(VERSION "7.19.1")
12 set(PACKAGE_TARNAME "curl")
13 set(PACKAGE_BUGREPORT " ")
14 set(PACKAGE_NAME "curl")
15 set(PACKAGE_VERSION "-")
16 set(PACKAGE_STRING "curl-")
17 set(PACKAGE_BUGREPORT "a suitable curl mailing list => http://curl.haxx.se/mail/")
18 set(OS "${CMAKE_SYSTEM_NAME}")
20 # We need ansi c-flags, especially on HP
21 set(CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS}")
22 set(CMAKE_REQUIRED_FLAGS ${CMAKE_ANSI_CFLAGS})
24 # Disable warnings on Borland to avoid changing 3rd party code.
25 if(BORLAND)
26   set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w-")
27 endif(BORLAND)
29 # If we are on AIX, do the _ALL_SOURCE magic
30 if(${CMAKE_SYSTEM_NAME} MATCHES AIX)
31   set(_ALL_SOURCE 1)
32 endif(${CMAKE_SYSTEM_NAME} MATCHES AIX)
34 include_directories(
35   ${CURL_SOURCE_DIR}/include
36   ${CURL_SOURCE_DIR}/lib
37   ${CURL_BINARY_DIR}/lib)
38 if(CMAKE_COMPILER_2005)
39   add_definitions(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE)
40   add_definitions(-D_SCL_SECURE_NO_DEPRECATE)
41 endif(CMAKE_COMPILER_2005) 
42 add_definitions(-DHAVE_CONFIG_H
43   -DCURL_STATICLIB)
45 add_subdirectory(lib)
46 add_subdirectory(src)
47 add_subdirectory(docs)