1 cmake_minimum_required(VERSION 2.4)
2 if(COMMAND CMAKE_POLICY)
3 cmake_policy(SET CMP0003 NEW)
4 endif(COMMAND CMAKE_POLICY)
7 include_regular_expression("^.*$")
9 # Setup package meta-data
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.
26 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w-")
29 # If we are on AIX, do the _ALL_SOURCE magic
30 if(${CMAKE_SYSTEM_NAME} MATCHES AIX)
32 endif(${CMAKE_SYSTEM_NAME} MATCHES AIX)
35 ${CURL_BINARY_DIR}/include
36 ${CURL_SOURCE_DIR}/include
37 ${CURL_SOURCE_DIR}/lib
38 ${CURL_BINARY_DIR}/lib)
39 if(CMAKE_COMPILER_2005)
40 add_definitions(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE)
41 add_definitions(-D_SCL_SECURE_NO_DEPRECATE)
42 endif(CMAKE_COMPILER_2005)
43 add_definitions(-DHAVE_CONFIG_H
45 option(CURL_SKIP_EXAMPLES "Skip building the curl examples" FALSE)
48 add_subdirectory(docs)