summaryrefslogtreecommitdiffstats
path: root/Tests/InterfaceBuildTargets/CMakeLists.txt
blob: a00e5d573863fe8775bf859e3abb74a5f634364f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
project(InterfaceBuildTargets)

add_library(testlib EXCLUDE_FROM_ALL testlib.cxx)
set_property(TARGET testlib PROPERTY PREFIX "")
if(CMAKE_GENERATOR MATCHES "Borland|Watcom")
  # These librarians add the .lib suffix anyway.
  set_property(TARGET testlib PROPERTY SUFFIX ".lib")
else()
  set_property(TARGET testlib PROPERTY SUFFIX "")
endif()

add_library(iface INTERFACE)
target_link_libraries(iface INTERFACE testlib)