mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-09 08:40:11 -06:00
Projects which ship object files as artifacts may want to control the object names as much as possible. Support setting explicit object names as source file properties to support such use cases.
7 lines
310 B
CMake
7 lines
310 B
CMake
set(CMAKE_INTERMEDIATE_DIR_STRATEGY FULL CACHE STRING "" FORCE)
|
|
|
|
add_library(objlib OBJECT lib.c)
|
|
set_property(SOURCE lib.c PROPERTY OBJECT_NAME "objlib_lib.c")
|
|
install(TARGETS objlib EXPORT exp OBJECTS DESTINATION "lib/objlib")
|
|
install(EXPORT exp DESTINATION lib/cmake/ON FILE on-config.cmake NAMESPACE ON::)
|