Files
CMake/Tests/RunCMake/Framework/FrameworkConsumption.cmake
Marc Chevrier 45ac71d8bc Ensure targets which are frameworks can be used freely
Ensure flag -F/path/to/framework is specified during compilation step
of consumers of the framework.

Fixes: #23336
2022-03-29 13:57:11 +02:00

16 lines
379 B
CMake

cmake_minimum_required(VERSION 3.22...3.24)
enable_language(C)
# Create framework and ensure header is placed in Headers
set(input_header "${CMAKE_SOURCE_DIR}/Gui.h")
add_library(Gui SHARED Gui.c "${input_header}")
set_target_properties(Gui PROPERTIES
PUBLIC_HEADER "${input_header}"
FRAMEWORK TRUE
)
add_executable(app main.c)
target_link_libraries(app PRIVATE Gui)