diff options
author | Kevin Brightwell <kevin.brightwell2@gmail.com> | 2016-02-05 23:23:17 +0300 |
---|---|---|
committer | Kevin Brightwell <kevin.brightwell2@gmail.com> | 2016-06-16 03:32:32 +0300 |
commit | 774d455dc720dc0d90d4d0bbdc57bde0ccb9f51d (patch) | |
tree | 09497bb1964e8f9ee8dd11aae4286006cd026ff5 /CMakeLists.txt | |
parent | 7081d81890dbd9e348bfa5ae640b5a307241d7e0 (diff) |
Update CMakeLists to be more configurable
* Add cxxopts.hpp as a source file to executable
* Add msvc options for compiling
* Add CXXOPTS_BUILD_EXAMPLES option to CMake build
* This is helpful when using CMake's ExternalProject_add()
* It is ON by default, but configurable from the command-line.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 219a714..82dcc2c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,6 +31,8 @@ project(cxxopts) set(VERSION "0.0.1") +option(CXXOPTS_BUILD_EXAMPLES "Set to ON to build examples" ON) + set(CXXOPTS_LINKER_LIBRARIES "") set(CXXOPTS_USE_UNICODE_HELP FALSE CACHE BOOL "Use ICU Unicode library") |