Tut cmake etwas wie target_link_options?

Können Sie die COMPILE_OPTIONS auf eine INTERFACE-Bibliothek (foo)
und diejenigen, die COMPILE_OPTIONS auch von den Nutzern
foo.

add_library(foo INTERFACE)
target_link_libraries(foo INTERFACE foo_1)
target_compile_options(foo INTERFACE "-DSOME_DEFINE")
add_executable(exe exe.cpp)
target_link_libraries(exe foo)

Ist es möglich, etwas ähnliches zu tun für LINK_FLAGS ?

InformationsquelleAutor Groleo | 2014-07-30
Schreibe einen Kommentar