Merge branch 'test-INCLUDE_DIRECTORIES-genex-read' into release
This commit is contained in:
commit
189cd28236
|
@ -110,6 +110,25 @@ set_property(TARGET libbad APPEND PROPERTY
|
|||
)
|
||||
|
||||
|
||||
add_library(includes_source_good empty.cpp)
|
||||
target_include_directories(includes_source_good
|
||||
INTERFACE
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/good"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/othergood/"
|
||||
)
|
||||
add_library(includes_source_bad empty.cpp)
|
||||
target_include_directories(includes_source_bad
|
||||
INTERFACE
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/bad"
|
||||
)
|
||||
|
||||
add_library(includes_proxy SHARED empty.cpp)
|
||||
target_link_libraries(includes_proxy includes_source_good)
|
||||
target_link_libraries(includes_proxy LINK_INTERFACE_LIBRARIES includes_source_bad)
|
||||
add_executable(copy_includes copy_includes.cpp)
|
||||
target_include_directories(copy_includes PRIVATE $<TARGET_PROPERTY:includes_proxy,INCLUDE_DIRECTORIES>)
|
||||
|
||||
|
||||
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/lib5.cpp" "#include \"common.h\"\n")
|
||||
add_library(lib5 "${CMAKE_CURRENT_BINARY_DIR}/lib5.cpp")
|
||||
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
|
||||
#include "common.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
return 0;
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
#ifdef _WIN32
|
||||
__declspec(dllexport)
|
||||
#endif
|
||||
int empty(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue