Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions libs/accumulators/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ median
min
moment
pot_quantile
p_square_cumulative_distribution
p_square_cumul_dist
p_square_quantile
reference
skewness
Expand All @@ -63,7 +63,7 @@ weighted_kurtosis
weighted_mean
weighted_median
weighted_moment
weighted_p_square_cum_dist
weighted_p_square_cumul_dist
weighted_p_square_quantile
weighted_skewness
weighted_sum
Expand All @@ -74,7 +74,7 @@ weighted_tail_quantile
weighted_tail_variate_means)

foreach(TEST ${TESTS})
boost_test_run(${TEST} DEPENDS boost_unit_test_framework boost_serialization)
boost_test_run(${TEST} DEPENDS boost_unit_test_framework boost_serialization STATIC)
endforeach(TEST ${TESTS})

if(WIN32)
Expand Down
7 changes: 6 additions & 1 deletion libs/asio/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ message(STATUS "!!!> missing some qnx stuff")

set (USE_SELECT "-DBOOST_ASIO_DISABLE_DEV_POLL -DBOOST_ASIO_DISABLE_EPOLL -DBOOST_ASIO_DISABLE_KQUEUE -DBOOST_ASIO_DISABLE_IOCP")

set (depends "boost_system-mt-static;boost_date_time-mt-static;boost_thread-mt-static")
#set (depends "boost_system-mt-static;boost_date_time-mt-static;boost_thread-mt-static")
set (depends "boost_system;boost_date_time;boost_thread;boost_unit_test_framework")

set (os_defines "${os_defines} -DBOOST_ALL_NO_LIB=1")

Expand All @@ -45,11 +46,13 @@ macro(asio_test_run NAME)
COMPILE_FLAGS "${os_defines}"
LINK_LIBS "${dep_libs}"
DEPENDS ${depends}
STATIC
)
boost_test_run(${NAME}_select ${NAME}.cpp
COMPILE_FLAGS "${os_defines} ${USE_SELECT}"
LINK_LIBS "${dep_libs}"
DEPENDS ${depends}
STATIC
)
endmacro(asio_test_run)

Expand All @@ -58,11 +61,13 @@ macro(asio_test_link NAME)
COMPILE_FLAGS "${os_defines}"
LINK_LIBS "${dep_libs}"
DEPENDS "${depends}"
STATIC
)
boost_test_link(${NAME}_select ${NAME}.cpp
COMPILE_FLAGS "${os_defines} ${USE_SELECT}"
LINK_LIBS "${dep_libs}"
DEPENDS "${depends}"
STATIC
)
endmacro(asio_test_link)

Expand Down
4 changes: 2 additions & 2 deletions libs/assign/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ SET(TESTS
my_vector_example)

FOREACH(test ${TESTS})
boost_test_run(${test} DEPENDS boost_unit_test_framework)
boost_test_run(${test} DEPENDS boost_unit_test_framework STATIC)
ENDFOREACH(test ${TESTS})

boost_test_run(multi_index_container
DEPENDS boost_unit_test_framework boost_serialization)
DEPENDS boost_unit_test_framework boost_serialization STATIC)
2 changes: 2 additions & 0 deletions libs/chrono/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ boost_add_library (chrono

SHARED_COMPILE_FLAGS "-DBOOST_CHRONO_DYN_LINK=1"
STATIC_COMPILE_FLAGS "-DBOOST_CHRONO_STATIC_LINK=1"

DEPENDS boost_system
)
12 changes: 6 additions & 6 deletions libs/context/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ macro (context_test_run TESTNAME)
boost_test_run (${TESTNAME}
STATIC
DEPENDS boost_context boost_test_exec_monitor )
boost_test_run ("${TESTNAME}_dll"
${TESTNAME}.cpp
SHARED
DEPENDS boost_context
"boost_test_exec_monitor${BOOST_TEST_EXEC_MONITOR_SUFFIX}")
# boost_test_run ("${TESTNAME}_dll"
# ${TESTNAME}.cpp
# SHARED
# DEPENDS boost_context
# "boost_test_exec_monitor${BOOST_TEST_EXEC_MONITOR_SUFFIX}")
endmacro (context_test_run)

#
Expand All @@ -36,4 +36,4 @@ set (TESTS
)

#
context_test_(run_timer_test)
context_test_run(test_context)
2 changes: 1 addition & 1 deletion libs/conversion/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ boost_test_run(numeric_cast_test ../numeric_cast_test.cpp)
boost_test_run(
lexical_cast_test
../lexical_cast_test.cpp
DEPENDS boost_unit_test_framework
DEPENDS boost_unit_test_framework STATIC
)


Expand Down
2 changes: 1 addition & 1 deletion libs/exception/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ boost_test_run(2-throw_exception_no_exceptions_test)
boost_test_run(3-throw_exception_no_integration_test)
boost_test_run(4-throw_exception_no_both_test)
boost_test_run(cloning_test)
boost_test_run(copy_exception_test)
boost_test_run(copy_exception_test DEPENDS boost_system boost_detail boost_thread)
boost_test_run(unknown_exception_test)
boost_test_run(exception_test)
boost_test_run(enable_error_info_test enable_error_info_test.cpp helper1.cpp)
Expand Down
30 changes: 19 additions & 11 deletions libs/filesystem/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,28 @@ boost_test_compile(tut3 ../example/tut3.cpp)
boost_test_compile(tut4 ../example/tut4.cpp)
boost_test_compile(tut5 ../example/tut5.cpp)


#
SET (TESTS path_unit_test path_test
operations_unit_test operations_test
fstream_test convenience_test
large_file_support_test deprecated_test
simple_ls)
SET (TESTS
#path_unit_test
# path_test
# operations_unit_test
# operations_test
fstream_test
# convenience_test (link problems)
large_file_support_test
# deprecated_test (link problems)
# simple_ls (file does not exist)
)

FOREACH (test ${TESTS})
boost_test_run(${test}_static
${test}.cpp
DEPENDS boost_filesystem STATIC
COMPILE_FLAGS -DBOOST_FILESYSTEM_STATIC_LINK)
boost_test_run(${test}_dynamic
${test}.cpp
DEPENDS boost_filesystem SHARED
COMPILE_FLAGS -DBOOST_FILESYSTEM_DYN_LINK)
DEPENDS boost_filesystem boost_unit_test_framework STATIC
# COMPILE_FLAGS -DBOOST_FILESYSTEM_STATIC_LINK
)
# boost_test_run(${test}_dynamic
# ${test}.cpp
# DEPENDS boost_filesystem boost_unit_test_framework SHARED
# COMPILE_FLAGS -DBOOST_FILESYSTEM_DYN_LINK)
ENDFOREACH (test ${TESTS})
8 changes: 4 additions & 4 deletions libs/format/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#
boost_additional_test_dependencies(format BOOST_DEPENDS test)

boost_test_run(format_test1 DEPENDS boost_test_exec_monitor)
boost_test_run(format_test2 DEPENDS boost_test_exec_monitor)
boost_test_run(format_test3 DEPENDS boost_test_exec_monitor)
boost_test_run(format_test_wstring DEPENDS boost_test_exec_monitor)
boost_test_run(format_test1 DEPENDS boost_test_exec_monitor STATIC)
boost_test_run(format_test2 DEPENDS boost_test_exec_monitor STATIC)
boost_test_run(format_test3 DEPENDS boost_test_exec_monitor STATIC)
boost_test_run(format_test_wstring DEPENDS boost_test_exec_monitor STATIC)

2 changes: 1 addition & 1 deletion libs/functional/hash/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ hash_deque_test
hash_set_test
hash_map_test
hash_complex_test
container_fwd_test
# container_fwd_test (file does not exist)
hash_no_ext_macro_1
hash_no_ext_macro_2
)
Expand Down
6 changes: 3 additions & 3 deletions libs/geometry/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ boost_additional_test_dependencies (geometry BOOST_DEPENDS test)

#
set (TESTS
core
# core
point_concept
geometries
arithmetic
algorithms
# arithmetic
# algorithms (file not found)
iterators
strategies
policies
Expand Down
2 changes: 1 addition & 1 deletion libs/icl/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ SET(TESTS
test_changing_interval_defaults_/test_changing_interval_defaults)

FOREACH(test ${TESTS})
boost_test_run(${test} DEPENDS boost_unit_test_framework boost_date_time)
boost_test_run(${test} DEPENDS boost_unit_test_framework boost_date_time STATIC)
ENDFOREACH(test ${TESTS})


10 changes: 5 additions & 5 deletions libs/integer/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
boost_additional_test_dependencies(integer BOOST_DEPENDS test)

boost_test_run(cstdint_test cstdint_test.cpp)
boost_test_run(integer_mask_test integer_mask_test.cpp DEPENDS boost_test_exec_monitor)
boost_test_run(integer_test integer_test.cpp DEPENDS boost_test_exec_monitor)
boost_test_run(integer_traits_test integer_traits_test.cpp DEPENDS boost_test_exec_monitor)
boost_test_run(static_log2_test static_log2_test.cpp DEPENDS boost_test_exec_monitor)
boost_test_run(static_min_max_test static_min_max_test.cpp DEPENDS boost_test_exec_monitor)
boost_test_run(integer_mask_test integer_mask_test.cpp DEPENDS boost_test_exec_monitor STATIC)
boost_test_run(integer_test integer_test.cpp DEPENDS boost_test_exec_monitor STATIC)
boost_test_run(integer_traits_test integer_traits_test.cpp DEPENDS boost_test_exec_monitor STATIC)
boost_test_run(static_log2_test static_log2_test.cpp DEPENDS boost_test_exec_monitor STATIC)
boost_test_run(static_min_max_test static_min_max_test.cpp DEPENDS boost_test_exec_monitor STATIC)
4 changes: 2 additions & 2 deletions libs/io/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
boost_additional_test_dependencies(io BOOST_DEPENDS test)


boost_test_run(ios_state_unit_test DEPENDS boost_unit_test_framework)
boost_test_run(ios_state_test DEPENDS boost_test_exec_monitor)
boost_test_run(ios_state_unit_test DEPENDS boost_unit_test_framework STATIC)
boost_test_run(ios_state_test DEPENDS boost_test_exec_monitor STATIC)

60 changes: 30 additions & 30 deletions libs/iostreams/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,59 +11,59 @@ boost_additional_test_dependencies(iostreams BOOST_DEPENDS test)
macro(iostreams_test TESTNAME)
boost_test_run(${TESTNAME}
${ARGN}
DEPENDS boost_unit_test_framework
DEPENDS boost_unit_test_framework STATIC
COMPILE_FLAGS "-DBOOST_IOSTREAMS_NO_LIB")
endmacro(iostreams_test)

iostreams_test(array_test)
iostreams_test(auto_close_test)
boost_test_run(array_test DEPENDS boost_system boost_filesystem boost_unit_test_framework STATIC)
boost_test_run(auto_close_test DEPENDS boost_system boost_unit_test_framework STATIC)
iostreams_test(buffer_size_test)
iostreams_test(code_converter_test
code_converter_test.cpp detail/utf8_codecvt_facet.cpp)
iostreams_test(compose_test)
iostreams_test(component_access_test)
boost_test_run(code_converter_test
code_converter_test.cpp detail/utf8_codecvt_facet.cpp DEPENDS boost_system boost_filesystem boost_unit_test_framework STATIC)
boost_test_run(compose_test DEPENDS boost_system boost_filesystem boost_unit_test_framework STATIC)
boost_test_run(component_access_test DEPENDS boost_system boost_filesystem boost_unit_test_framework STATIC)
iostreams_test(copy_test)
iostreams_test(counter_test)
iostreams_test(direct_adapter_test)
iostreams_test(example_test)
iostreams_test(file_test)
boost_test_run(counter_test DEPENDS boost_system boost_filesystem boost_unit_test_framework STATIC)
boost_test_run(direct_adapter_test DEPENDS boost_system boost_filesystem boost_unit_test_framework STATIC)
boost_test_run(example_test DEPENDS boost_system boost_filesystem boost_unit_test_framework STATIC)
boost_test_run(file_test DEPENDS boost_system boost_filesystem boost_unit_test_framework STATIC)
boost_test_run(file_descriptor_test
DEPENDS boost_unit_test_framework boost_iostreams
DEPENDS boost_unit_test_framework boost_system boost_filesystem boost_iostreams STATIC
COMPILE_FLAGS "-DBOOST_IOSTREAMS_NO_LIB")
iostreams_test(filtering_stream_test)
boost_test_run(filtering_stream_test DEPENDS boost_system boost_filesystem boost_unit_test_framework STATIC)
iostreams_test(finite_state_filter_test)
iostreams_test(flush_test)
iostreams_test(invert_test)
iostreams_test(line_filter_test)
boost_test_run(flush_test DEPENDS boost_system boost_unit_test_framework STATIC)
boost_test_run(invert_test DEPENDS boost_system boost_filesystem boost_unit_test_framework STATIC)
boost_test_run(line_filter_test DEPENDS boost_system boost_filesystem boost_unit_test_framework STATIC)
boost_test_run(mapped_file_test
DEPENDS boost_unit_test_framework boost_iostreams
DEPENDS boost_unit_test_framework boost_system boost_filesystem boost_iostreams STATIC
COMPILE_FLAGS "-DBOOST_IOSTREAMS_NO_LIB")
iostreams_test(newline_test)
iostreams_test(null_test)
iostreams_test(pipeline_test)
boost_test_run(null_test DEPENDS boost_system boost_unit_test_framework STATIC)
boost_test_run(pipeline_test DEPENDS boost_system boost_filesystem boost_unit_test_framework STATIC)
boost_test_run(regex_filter_test
DEPENDS boost_unit_test_framework boost_regex
DEPENDS boost_unit_test_framework boost_system boost_filesystem boost_regex STATIC
COMPILE_FLAGS "-DBOOST_IOSTREAMS_NO_LIB")
iostreams_test(restrict_test)
iostreams_test(seekable_file_test)
iostreams_test(seekable_filter_test)
iostreams_test(stdio_filter_test)
iostreams_test(symmetric_filter_test)
iostreams_test(tee_test)
iostreams_test(wide_stream_test)
boost_test_run(restrict_test DEPENDS boost_system boost_filesystem boost_unit_test_framework STATIC)
boost_test_run(seekable_file_test DEPENDS boost_system boost_filesystem boost_unit_test_framework STATIC)
boost_test_run(seekable_filter_test DEPENDS boost_system boost_unit_test_framework STATIC)
boost_test_run(stdio_filter_test DEPENDS boost_system boost_filesystem boost_unit_test_framework STATIC)
boost_test_run(symmetric_filter_test DEPENDS boost_system boost_filesystem boost_unit_test_framework STATIC)
boost_test_run(tee_test DEPENDS boost_system boost_filesystem boost_unit_test_framework STATIC)
boost_test_run(wide_stream_test DEPENDS boost_system boost_filesystem boost_unit_test_framework STATIC)

if (ZLIB_FOUND)
boost_test_run(gzip_test
DEPENDS boost_unit_test_framework boost_iostreams
DEPENDS boost_unit_test_framework boost_iostreams STATIC
COMPILE_FLAGS "-DBOOST_IOSTREAMS_NO_LIB")
boost_test_run(zlib_test
DEPENDS boost_unit_test_framework boost_iostreams
DEPENDS boost_unit_test_framework boost_iostreams STATIC
COMPILE_FLAGS "-DBOOST_IOSTREAMS_NO_LIB")
endif(ZLIB_FOUND)

# Find BZip2. If it's available, test it
if (BZIP2_FOUND)
boost_test_run(bzip2_test
DEPENDS boost_unit_test_framework boost_iostreams
DEPENDS boost_unit_test_framework boost_iostreamsSTATIC
COMPILE_FLAGS "-DBOOST_IOSTREAMS_NO_LIB")
endif(BZIP2_FOUND)
30 changes: 15 additions & 15 deletions libs/lambda/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
#
boost_additional_test_dependencies(lambda BOOST_DEPENDS test any)

boost_test_run(algorithm_test DEPENDS boost_test_exec_monitor)
boost_test_run(bind_tests_simple DEPENDS boost_test_exec_monitor)
boost_test_run(bind_tests_advanced DEPENDS boost_test_exec_monitor)
boost_test_run(bind_tests_simple_f_refs DEPENDS boost_test_exec_monitor)
boost_test_run(bll_and_function DEPENDS boost_test_exec_monitor)
boost_test_run(algorithm_test DEPENDS boost_test_exec_monitor STATIC)
boost_test_run(bind_tests_simple DEPENDS boost_test_exec_monitor STATIC)
boost_test_run(bind_tests_advanced DEPENDS boost_test_exec_monitor STATIC)
boost_test_run(bind_tests_simple_f_refs DEPENDS boost_test_exec_monitor STATIC)
boost_test_run(bll_and_function DEPENDS boost_test_exec_monitor STATIC)
boost_test_run(lambda_cast_test
cast_test.cpp DEPENDS boost_test_exec_monitor)
boost_test_run(constructor_tests DEPENDS boost_test_exec_monitor)
boost_test_run(control_structures DEPENDS boost_test_exec_monitor)
boost_test_run(exception_test DEPENDS boost_test_exec_monitor)
boost_test_run(extending_rt_traits DEPENDS boost_test_exec_monitor)
boost_test_run(is_instance_of_test DEPENDS boost_test_exec_monitor)
boost_test_run(member_pointer_test DEPENDS boost_test_exec_monitor)
boost_test_run(operator_tests_simple DEPENDS boost_test_exec_monitor)
boost_test_run(phoenix_control_structures DEPENDS boost_test_exec_monitor)
boost_test_run(switch_construct DEPENDS boost_test_exec_monitor)
cast_test.cpp DEPENDS boost_test_exec_monitor STATIC)
boost_test_run(constructor_tests DEPENDS boost_test_exec_monitor STATIC)
boost_test_run(control_structures DEPENDS boost_test_exec_monitor STATIC)
boost_test_run(exception_test DEPENDS boost_test_exec_monitor STATIC)
boost_test_run(extending_rt_traits DEPENDS boost_test_exec_monitor STATIC)
boost_test_run(is_instance_of_test DEPENDS boost_test_exec_monitor STATIC)
boost_test_run(member_pointer_test DEPENDS boost_test_exec_monitor STATIC)
boost_test_run(operator_tests_simple DEPENDS boost_test_exec_monitor STATIC)
boost_test_run(phoenix_control_structures DEPENDS boost_test_exec_monitor STATIC)
boost_test_run(switch_construct DEPENDS boost_test_exec_monitor STATIC)
13 changes: 10 additions & 3 deletions libs/locale/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,15 @@ if (ICU_FOUND AND ICU_I18N_FOUND)
icu/conversion.cpp icu/date_time.cpp icu/formatter.cpp
icu/icu_backend.cpp icu/numeric.cpp icu/time_zone.cpp )
set (ICU_DEPENDS boost_thread)
set (_locale_link_libs ${BOOST_LOCALE_ICU_LIBRARIES})
else (ICU_FOUND AND ICU_I18N_FOUND)
colormsg (CYAN "+-- ICU (unicode) not available for locale, disabling support.")
find_package(Iconv)
if(ICONV_FOUND)
add_definitions(-DBOOST_LOCALE_WITH_ICONV)
set (_locale_link_libs ${ICONV_LIBRARIES})
colormsg (CYAN "+-- ICU (unicode) not available for locale, disabling support.")
colormsg (CYAN "+-- using the iconv library instead.")
endif(ICONV_FOUND)
endif (ICU_FOUND AND ICU_I18N_FOUND)

if (WIN32)
Expand Down Expand Up @@ -60,8 +67,8 @@ boost_add_library (
${WIN32_SOURCES}
${ICU_SOURCES}

DEPENDS ${ICU_DEPENDS}
LINK_LIBS ${BOOST_LOCALE_ICU_LIBRARIES}
DEPENDS ${ICU_DEPENDS} boost_system
LINK_LIBS ${_locale_link_libs}
SHARED_COMPILE_FLAGS -DBOOST_LOCALE_DYN_LINK=1
${NO_STATIC_IF_ICU_FOUND}
)
Expand Down
Loading