summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/target_link_libraries/SubDirTarget.cmake
blob: 55c658dc76885b83dfdb2d0ea44291d48428aee3 (plain)
1
2
3
4
5
6
7
8
9
10
11
enable_language(C)

add_executable(mainexe empty.c)
add_library(mainlib empty.c)

add_subdirectory(SubDirTarget)

target_link_libraries(subexe mainlib)
target_link_libraries(subexe sublib)
get_property(subexe_libs TARGET subexe PROPERTY INTERFACE_LINK_LIBRARIES)
message(STATUS "subexe: ${subexe_libs}")