Skip to content

Commit 7dc65a7

Browse files
committed
cml: mix
1 parent 75d91f5 commit 7dc65a7

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed

test/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ foreach(test_cpp ${test_cpp_files})
6464
add_dependencies(tests ${test})
6565
endforeach()
6666

67-
add_subdirectory(mix_release_debug)
67+
add_executable(test_mix_release_debug mix_release_debug/main.cpp mix_release_debug/lib.cpp)
68+
target_link_libraries(test_mix_release_debug Boost::openmethod Boost::unit_test_framework)
69+
add_test(NAME test_mix_release_debug COMMAND test_mix_release_debug)
6870

6971
function(openmethod_compile_fail_test testname fail_regex)
7072
add_library("compile-fail-${testname}" STATIC EXCLUDE_FROM_ALL "${testname}.cpp")

test/Jamfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ for local src in [ glob test_*.cpp ]
3535
run $(src) unit_test_framework ;
3636
}
3737

38+
run mix_release_debug/main.cpp mix_release_debug/lib.cpp unit_test_framework ;
39+
40+
3841
for local src in [ glob compile_fail_*.cpp ]
3942
{
4043
compile-fail $(src) ;

test/mix_release_debug/CMakeLists.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.

test/mix_release_debug/lib.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// Copyright (c) 2018-2025 Jean-Louis Leroy
2+
// Distributed under the Boost Software License, Version 1.0.
3+
// See accompanying file LICENSE_1_0.txt
4+
// or copy at http://www.boost.org/LICENSE_1_0.txt)
5+
16
#include <iostream>
27

38
#ifdef BOOST_OPENMETHOD_ENABLE_RUNTIME_CHECKS

test/mix_release_debug/lib.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// Copyright (c) 2018-2025 Jean-Louis Leroy
2+
// Distributed under the Boost Software License, Version 1.0.
3+
// See accompanying file LICENSE_1_0.txt
4+
// or copy at http://www.boost.org/LICENSE_1_0.txt)
5+
16
#ifndef BOOST_OPENMETHOD_TEST_MIX_RELEASE_DEBUG_LIB_HPP
27
#define BOOST_OPENMETHOD_TEST_MIX_RELEASE_DEBUG_LIB_HPP
38

0 commit comments

Comments
 (0)