mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
9 lines
256 B
CMake
9 lines
256 B
CMake
add_library(ExternalObjLib OBJECT IMPORTED)
|
|
set_target_properties(ExternalObjLib PROPERTIES
|
|
IMPORTED_OBJECTS "${CMAKE_CURRENT_SOURCE_DIR}/dummy.o"
|
|
)
|
|
|
|
add_executable(MyApp main.cpp)
|
|
|
|
target_link_libraries(MyApp PRIVATE $<TARGET_OBJECTS:ExternalObjLib>)
|