diff options
Diffstat (limited to 'config.tests/binary_for_strip')
-rw-r--r-- | config.tests/binary_for_strip/CMakeLists.txt | 12 | ||||
-rw-r--r-- | config.tests/binary_for_strip/lib1.cpp | 4 |
2 files changed, 16 insertions, 0 deletions
diff --git a/config.tests/binary_for_strip/CMakeLists.txt b/config.tests/binary_for_strip/CMakeLists.txt new file mode 100644 index 0000000000..2395dfad47 --- /dev/null +++ b/config.tests/binary_for_strip/CMakeLists.txt @@ -0,0 +1,12 @@ +# Copyright (C) 2022 The Qt Company Ltd. +# SPDX-License-Identifier: BSD-3-Clause + +cmake_minimum_required(VERSION 3.16) +project(proj LANGUAGES CXX) +add_library(lib1 SHARED lib1.cpp) + +add_custom_target(print_lib_path ALL + COMMAND ${CMAKE_COMMAND} -E echo "###$<TARGET_FILE:lib1>###" + VERBATIM +) +add_dependencies(print_lib_path lib1) diff --git a/config.tests/binary_for_strip/lib1.cpp b/config.tests/binary_for_strip/lib1.cpp new file mode 100644 index 0000000000..d2b7847557 --- /dev/null +++ b/config.tests/binary_for_strip/lib1.cpp @@ -0,0 +1,4 @@ +// Copyright (C) 2022 The Qt Company Ltd. +// SPDX-License-Identifier: BSD-3-Clause + +int libfunc() { return 0; } |