Commit Graph

14 Commits

Author SHA1 Message Date
Mario Werner
38708cb91d define compiler warning flags globally instead of locally for every binary 2017-06-19 15:46:14 +02:00
Mario Badr
e005d07656 Use cmake interface library
Fixes #33.

This PR uses cmake's interface library feature:

  An INTERFACE library target does not directly create build output,
  though it may have properties set on it and it may be installed,
  exported and imported.

This makes it easier to include the header only library in a cmake
project. After using add_subdirectory on the cxxopts directory, one
simply needs to include cxxopts in their target_link_libraries, which
will allow the user's target to inherit the properties of the cxxopts
header library (see changes to example and test).
2016-12-03 07:50:14 +11:00
Jarryd Beck
a04284fc2c fix Unicode build 2016-11-30 18:05:34 +11:00
Jarryd Beck
55bfe49aa0 options test 2016-08-26 08:22:04 +10:00
Kevin Brightwell
774d455dc7 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.
2016-06-15 20:32:32 -04:00
Jarryd Beck
8d7c4ea43e unicode configuration 2014-10-27 22:06:24 +11:00
Jarryd Beck
9509ca94f2 unicode 2014-10-27 16:45:13 +11:00
Jarryd Beck
9889637790 inline everything 2014-10-15 11:38:39 +11:00
Jarryd Beck
aa0a3a415c install 2014-10-13 16:35:51 +11:00
Jarryd Beck
def4848b23 move to example.cpp 2014-10-10 18:03:44 +11:00
Jarryd Beck
e19872b7c0 cmake copyright 2014-10-02 21:12:28 +10:00
Jarryd Beck
f11af6fb89 copyright 2014-10-02 21:11:50 +10:00
Jarryd Beck
db5477ddd8 getting option adding working 2014-09-26 02:19:23 +10:00
Jarryd Beck
2deb5d87fb initial commit 2014-09-10 16:47:22 +10:00