qt5base-lts/config.tests/binary_for_strip/CMakeLists.txt
Alexandru Croitor d26c1ba4de CMake: Make sure the strip_for_binary project works with Makefiles
The printed lib path did not appear when building the project with the
Unix Makefiles generator.

Make sure the printing does not depend on the shell used by the
generator, by making it VERBATIM.

Amends 39f657032b

Pick-to: 6.2 6.3
Task-number: QTBUG-101653
Change-Id: I3853bbed3b121ecdc8b2e9da42eb3399f347b8c2
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
2022-04-04 15:41:20 +02:00

10 lines
255 B
CMake

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)