mirror of
https://github.com/pineappleEA/pineapple-src.git
synced 2024-12-13 04:28:25 -05:00
11 lines
315 B
CMake
11 lines
315 B
CMake
|
set(GFLAGS_USE_TARGET_NAMESPACE ON)
|
||
|
|
||
|
_find_package(${ARGS})
|
||
|
|
||
|
foreach(tgt gflags gflags_shared gflags_static)
|
||
|
if (NOT TARGET ${tgt} AND TARGET "gflags::${tgt}")
|
||
|
add_library(${tgt} INTERFACE IMPORTED)
|
||
|
target_link_libraries(${tgt} INTERFACE "gflags::${tgt}")
|
||
|
endif()
|
||
|
endforeach(tgt)
|