mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -06:00
11 lines
270 B
CMake
11 lines
270 B
CMake
enable_language(C)
|
|
|
|
add_library(AnObjLib OBJECT a.c)
|
|
target_compile_definitions(AnObjLib INTERFACE REQUIRED)
|
|
|
|
add_library(AnotherObjLib OBJECT b.c)
|
|
target_link_libraries(AnotherObjLib PRIVATE AnObjLib)
|
|
|
|
add_executable(exe exe.c)
|
|
target_link_libraries(exe AnotherObjLib)
|