mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -06:00
The geneator expression can now be used with static, shared, and module libraries and executables.
9 lines
213 B
CMake
9 lines
213 B
CMake
enable_language(CXX)
|
|
|
|
file(GENERATE
|
|
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/$<LOWER_CASE:$<CONFIG>/somefile.cpp"
|
|
CONTENT "static const char content[] = \"$<TARGET_OBJECTS:foo>\";\n"
|
|
)
|
|
|
|
add_library(foo INTERFACE )
|