Compare commits

...

2 Commits

Author SHA1 Message Date
Beman Dawes
b19fb415c1 Release 1.37.0
[SVN r51178]
2009-02-10 13:14:42 +00:00
Troy D. Straszheim
b55001a061 merge of cmake build files from trunk per beman
[SVN r50756]
2009-01-24 18:57:20 +00:00
4 changed files with 51 additions and 0 deletions

22
CMakeLists.txt Normal file
View File

@@ -0,0 +1,22 @@
#----------------------------------------------------------------------------
# This file was automatically generated from the original CMakeLists.txt file
# Add a variable to hold the headers for the library
set (lib_headers
program_options.hpp
program_options
)
# Add a library target to the build system
boost_library_project(
program_options
SRCDIRS src
TESTDIRS test
HEADERS ${lib_headers}
# DOCDIRS
DESCRIPTION "Access to configuration data given on command line, in config files and other sources."
MODULARIZED
AUTHORS "Vladimir Prus <ghost -at- cs.msu.su>"
# MAINTAINERS
)

3
module.cmake Normal file
View File

@@ -0,0 +1,3 @@
boost_module(program_options DEPENDS any bind smart_ptr tokenizer)
# bind is needed because of a dependency on boost/mem_fn.hpp

5
src/CMakeLists.txt Normal file
View File

@@ -0,0 +1,5 @@
boost_add_library(boost_program_options
cmdline.cpp config_file.cpp options_description.cpp parsers.cpp
variables_map.cpp value_semantic.cpp positional_options.cpp
utf8_codecvt_facet.cpp convert.cpp winmain.cpp
SHARED_COMPILE_FLAGS "-DBOOST_PROGRAM_OPTIONS_DYN_LINK=1")

21
test/CMakeLists.txt Normal file
View File

@@ -0,0 +1,21 @@
boost_additional_test_dependencies(program_options BOOST_DEPENDS test)
set(PROGRAM_OPTIONS_LIBRARIES
boost_program_options
boost_test_exec_monitor)
macro(program_options_test_run TESTNAME)
boost_test_run(${TESTNAME}
DEPENDS boost_program_options boost_test_exec_monitor STATIC)
boost_test_run("${TESTNAME}_dll"
"${TESTNAME}.cpp"
DEPENDS boost_program_options boost_test_exec_monitor-static SHARED)
endmacro(program_options_test_run)
program_options_test_run(options_description_test)
program_options_test_run(parsers_test)
program_options_test_run(variable_map_test)
program_options_test_run(cmdline_test)
program_options_test_run(positional_options_test)
program_options_test_run(unicode_test)
program_options_test_run(winmain)