Skip to content

Commit b55001a

Browse files
committed
merge of cmake build files from trunk per beman
[SVN r50756]
1 parent 2a16575 commit b55001a

File tree

4 files changed

+51
-0
lines changed

4 files changed

+51
-0
lines changed

CMakeLists.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#----------------------------------------------------------------------------
2+
# This file was automatically generated from the original CMakeLists.txt file
3+
# Add a variable to hold the headers for the library
4+
set (lib_headers
5+
program_options.hpp
6+
program_options
7+
)
8+
9+
# Add a library target to the build system
10+
boost_library_project(
11+
program_options
12+
SRCDIRS src
13+
TESTDIRS test
14+
HEADERS ${lib_headers}
15+
# DOCDIRS
16+
DESCRIPTION "Access to configuration data given on command line, in config files and other sources."
17+
MODULARIZED
18+
AUTHORS "Vladimir Prus <ghost -at- cs.msu.su>"
19+
# MAINTAINERS
20+
)
21+
22+

module.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
boost_module(program_options DEPENDS any bind smart_ptr tokenizer)
2+
3+
# bind is needed because of a dependency on boost/mem_fn.hpp

src/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
boost_add_library(boost_program_options
2+
cmdline.cpp config_file.cpp options_description.cpp parsers.cpp
3+
variables_map.cpp value_semantic.cpp positional_options.cpp
4+
utf8_codecvt_facet.cpp convert.cpp winmain.cpp
5+
SHARED_COMPILE_FLAGS "-DBOOST_PROGRAM_OPTIONS_DYN_LINK=1")

test/CMakeLists.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
boost_additional_test_dependencies(program_options BOOST_DEPENDS test)
2+
3+
set(PROGRAM_OPTIONS_LIBRARIES
4+
boost_program_options
5+
boost_test_exec_monitor)
6+
7+
macro(program_options_test_run TESTNAME)
8+
boost_test_run(${TESTNAME}
9+
DEPENDS boost_program_options boost_test_exec_monitor STATIC)
10+
boost_test_run("${TESTNAME}_dll"
11+
"${TESTNAME}.cpp"
12+
DEPENDS boost_program_options boost_test_exec_monitor-static SHARED)
13+
endmacro(program_options_test_run)
14+
15+
program_options_test_run(options_description_test)
16+
program_options_test_run(parsers_test)
17+
program_options_test_run(variable_map_test)
18+
program_options_test_run(cmdline_test)
19+
program_options_test_run(positional_options_test)
20+
program_options_test_run(unicode_test)
21+
program_options_test_run(winmain)

0 commit comments

Comments
 (0)