summaryrefslogtreecommitdiffstats
path: root/Tests/LinkLanguage/CMakeLists.txt
blob: 89c29823430014fed197366d5c98c47711134a34 (plain)
1
2
3
4
5
6
7
8
9
10
cmake_minimum_required(VERSION 2.7.20090708)
project(LinkLanguage C CXX)

add_library(foo STATIC foo.cxx)
add_executable(LinkLanguage LinkLanguage.c)
target_link_libraries(LinkLanguage foo)

# CMake should now automatically choose CXX for linking, so we need
# not set the property:
#set_property(TARGET LinkLanguage PROPERTY LINKER_LANGUAGE CXX)