You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
534 B
23 lines
534 B
2 years ago
|
|
||
|
enable_language(C)
|
||
|
|
||
|
# Create imported target NS::lib
|
||
|
add_library(NS::lib STATIC IMPORTED)
|
||
|
set_target_properties(NS::lib PROPERTIES
|
||
|
IMPORTED_LOCATION "/path/to/lib"
|
||
|
IMPORTED_IMPLIB "/path/to/import.lib"
|
||
|
)
|
||
|
|
||
|
# Create imported target NS::lib2
|
||
|
add_library(NS::lib2 SHARED IMPORTED)
|
||
|
|
||
|
set_target_properties(NS::lib2 PROPERTIES
|
||
|
IMPORTED_LOCATION "/path/to/lib"
|
||
|
IMPORTED_IMPLIB "/path/to/import.lib"
|
||
|
INTERFACE_LINK_LIBRARIES "$<LINK_GROUP:feat,NS::lib>"
|
||
|
)
|
||
|
|
||
|
|
||
|
add_library(lib SHARED lib.c)
|
||
|
target_link_libraries(lib PRIVATE NS::lib2)
|