summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* cmake: Correctly include curl.rc in Windows builds (#2064)John Starks2017-11-101-1/+1
| | | Update CMakeLists.txt to add curl.rc to the correct list.
* cmake: Export libcurl and curl targets to use by other cmake projectsJakub Zakrzewski2017-10-281-1/+12
| | | | | | | | | The config files define curl and libcurl targets as imported targets CURL::curl and CURL::libcurl. For backward compatibility with CMake- provided find-module the CURL_INCLUDE_DIRS and CURL_LIBRARIES are also set. Closes #1879
* includes: remove curl/curlbuild.h and curl/curlrules.hDaniel Stenberg2017-06-141-1/+1
| | | | | | | | Rely entirely on curl/system.h now. Introduced in Aug 2008 with commit 14240e9e109f. Now gone. Fixes #1456
* cmake: build manual pages (including curl.1)Peter Wu2017-03-211-6/+6
| | | | | | | | | | | Also make Perl mandatory to allow building the docs. While CMakeLists.txt could probably read the list of manual pages from Makefile.am, actually putting those in CMakeLists.txt is cleaner so that is what is done here. Fixes #1230 Ref: https://github.com/curl/curl/pull/1288
* s/cURL/curlDaniel Stenberg2016-11-071-4/+4
| | | | | | We're mostly saying just "curl" in lower case these days so here's a big cleanup to adapt to this reality. A few instances are left as the project could still formally be considered called cURL.
* Makefile.inc: s/curl_SOURCES/CURL_FILESDaniel Stenberg2015-12-231-1/+2
| | | | | | | | | This allows the root Makefile.am to include the Makefile.inc without causing automake to warn on it (variables named *_SOURCES are magic). curl_SOURCES is then instead assigned properly in src/Makefile.am only. Closes #577
* CMake: Fix generation of tool_hugehelp.c on windowsSergei Nikulov2015-02-191-7/+8
| | | | | | Use "cmake -E echo" instead of "echo". Reviewed-by: Brad King <brad.king@kitware.com>
* cmake: build tool_hugehelp (ENABLE_MANUAL)Peter Wu2014-10-121-6/+35
| | | | | | | | | Rather than always outputting an empty manual page for the '-M' option, generate a full manual page as done by autotools. For simplicity in CMake, always generate the gzipped page as it will not be used anyway when zlib is not available. Signed-off-by: Peter Wu <peter@lekensteyn.nl>
* Cmake: Got rid of setup_curl_dependenciesJakub Zakrzewski2014-10-091-5/+2
| | | | | | There is no need for such function. Include_directories propagate by themselves and having a function with one simple link statement makes little sense.
* build: Renamed CURLX_ONES file list definition to CURLX_CFILESSteve Holme2014-05-211-1/+1
| | | | | | | Renamed the CURLX_ONES file list definition in order to a) try and be consistent with other file lists and b) to allow for the addition of the curlx header files, which will assist with Visual Studio project files generation rather than hard coding those files.
* cmake: Fix for MSVC2010 project generationSergei Nikulov2013-07-171-7/+0
| | | | | | | | | | | | | | | | | | Fixed issue with static build for MSVC2010. After some investigation I've discovered known issue http://public.kitware.com/Bug/view.php?id=11240 When .rc file is linked to static lib it fails with following linker error LINK : warning LNK4068: /MACHINE not specified; defaulting to X86 file.obj : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' Fix add target property /MACHINE: for MSVC generation. Also removed old workarounds - it caused errors during msvc build. Bug: http://curl.haxx.se/mail/lib-2013-07/0046.html
* build: fix circular header inclusion with other packagesYang Tse2013-01-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit renames lib/setup.h to lib/curl_setup.h and renames lib/setup_once.h to lib/curl_setup_once.h. Removes the need and usage of a header inclusion guard foreign to libcurl. [1] Removes the need and presence of an alarming notice we carried in old setup_once.h [2] ---------------------------------------- 1 - lib/setup_once.h used __SETUP_ONCE_H macro as header inclusion guard up to commit ec691ca3 which changed this to HEADER_CURL_SETUP_ONCE_H, this single inclusion guard is enough to ensure that inclusion of lib/setup_once.h done from lib/setup.h is only done once. Additionally lib/setup.h has always used __SETUP_ONCE_H macro to protect inclusion of setup_once.h even after commit ec691ca3, this was to avoid a circular header inclusion triggered when building a c-ares enabled version with c-ares sources available which also has a setup_once.h header. Commit ec691ca3 exposes the real nature of __SETUP_ONCE_H usage in lib/setup.h, it is a header inclusion guard foreign to libcurl belonging to c-ares's setup_once.h The renaming this commit does, fixes the circular header inclusion, and as such removes the need and usage of a header inclusion guard foreign to libcurl. Macro __SETUP_ONCE_H no longer used in libcurl. 2 - Due to the circular interdependency of old lib/setup_once.h and the c-ares setup_once.h header, old file lib/setup_once.h has carried back from 2006 up to now days an alarming and prominent notice about the need of keeping libcurl's and c-ares's setup_once.h in sync. Given that this commit fixes the circular interdependency, the need and presence of mentioned notice is removed. All mentioned interdependencies come back from now old days when the c-ares project lived inside a curl subdirectory. This commit removes last traces of such fact.
* Revert changes relative to lib/*.[ch] recent renamingYang Tse2013-01-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts renaming and usage of lib/*.h header files done 28-12-2012, reverting 2 commits: f871de0... build: make use of 76 lib/*.h renamed files ffd8e12... build: rename 76 lib/*.h files This also reverts removal of redundant include guard (redundant thanks to changes in above commits) done 2-12-2013, reverting 1 commit: c087374... curl_setup.h: remove redundant include guard This also reverts renaming and usage of lib/*.c source files done 3-12-2013, reverting 3 commits: 13606bb... build: make use of 93 lib/*.c renamed files 5b6e792... build: rename 93 lib/*.c files 7d83dff... build: commit 13606bbfde follow-up 1 Start of related discussion thread: http://curl.haxx.se/mail/lib-2013-01/0012.html Asking for confirmation on pushing this revertion commit: http://curl.haxx.se/mail/lib-2013-01/0048.html Confirmation summary: http://curl.haxx.se/mail/lib-2013-01/0079.html NOTICE: The list of 2 files that have been modified by other intermixed commits, while renamed, and also by at least one of the 6 commits this one reverts follows below. These 2 files will exhibit a hole in history unless git's '--follow' option is used when viewing logs. lib/curl_imap.h lib/curl_smtp.h
* build: make use of 76 lib/*.h renamed filesYang Tse2012-12-281-2/+2
| | | | | | 76 private header files renamed to use our standard naming scheme. This change affects 322 files in libcurl's source tree.
* curl tool: renaming hugehelp files to tool_hugehelpYang Tse2012-12-261-4/+4
|
* CMake: improve library search, implement install.Zmey Petroff2011-04-281-0/+2
| | | | | | | | | | | | | Improved library search by check_function_exists_concat() macro: it does not revert the list of libraries any more. Improved OpenSSL library search: first find zlib, then search for openssl libraries that may depend on zlib. For Unix: openssl libraries can now be detected in nonstandard locations. Supply CMAKE_LIBRARY_PATH to CMake on command line. Added installation capability (very basic one yet).
* Rename CURL_SOURCES macro; revert previous rename of curl_SOURCES macro.Guenter Knauf2010-08-021-2/+2
|
* Renamed curl_SOURCES to CURL_ALLFILES to overcome wmake's case-insensitivity.Guenter Knauf2010-08-021-1/+1
|
* removed trailing whitespaceYang Tse2010-02-141-1/+1
|
* renamed generated config.h to curl_config.h in order to avoid clashes when ↵Gunter Knauf2009-07-141-1/+1
| | | | libcurl is used with other projects which also have a config.h.
* ENH: lower case cmake functions and remove tabs and re-indent cmake codeBill Hoffman2009-06-091-33/+34
|
* Added newline ad the end of generated hugehelp.c (the "default" one, when it ↵Benoit Neil2009-04-081-1/+1
| | | | hasn't been generated before).
* Made the CMake scripts read Makefile.inc. Needs testing I guess.Benoit Neil2009-04-061-21/+6
|
* Added tests (exes) targets, refactor a few things.Benoit Neil2009-04-061-9/+1
| | | | PS: Once again, sorry if the added files have executable perms on Linux.
* Added curl (exe) target, fixed static/dynamic linking errors.Benoit Neil2009-04-061-0/+78
PS: Sorry if the added file has executable perms on Linux, I didn't found anything related to it...