cmake: build as many source files as possible
authorAdam Simpkins <simpkins@fb.com>
Fri, 19 Jan 2018 04:43:18 +0000 (20:43 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 19 Jan 2018 05:04:33 +0000 (21:04 -0800)
commitb50a3dd838801676f9f5a3d5f0b9a094a8175d72
treeddd8ac99815b1f164509132270dd3aeefa78fe33
parent3e00e4620a8b42641147336cbffdb098850e0cf4
cmake: build as many source files as possible

Summary:
The CMakeLists.txt file finds the sources and headers for the main folly
library by finding all *.cpp and *.h files, and then excluding specific ones.

The CMakeLists.txt file was originally written for Windows builds, and it was
hard-coded to exclude a number of files that do not build on Windows.   This
updates the file to properly check for the dependencies, and build these files
if their required third-party dependencies are available.

Reviewed By: meyering

Differential Revision: D6745368

fbshipit-source-id: 3ee04d54147a68c482aab50d30bc9fe2a4134eef
CMake/FindLibAIO.cmake [new file with mode: 0644]
CMake/FindLibDwarf.cmake [new file with mode: 0644]
CMake/FindLibURCU.cmake [new file with mode: 0644]
CMake/FindLibiberty.cmake [new file with mode: 0644]
CMake/folly-deps.cmake
CMakeLists.txt