Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / CMakeLists.txt
blobf9a21510253099c207c3138e32750c2896461082
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_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
44   -DCURL_STATICLIB)
45 option(CURL_SKIP_EXAMPLES "Skip building the curl examples" FALSE)
46 add_subdirectory(lib)
47 add_subdirectory(src)
48 add_subdirectory(docs)