ENH: do not depend on files that do not exist
[cmake.git] / Tests / SetLang / CMakeLists.txt
blobab6570c335684e2e1c7848c7c3eede9df90f8034
1 # test forcing a source file language to c++ from c
2 cmake_minimum_required (VERSION 2.6)
3 project(SetLang)
4 # force this to be verbose so I can debug a dashboard entry
5 SET(CMAKE_VERBOSE_MAKEFILE 1)
6 add_library(foo foo.c)
7 add_executable(SetLang bar.c)
8 set_source_files_properties(foo.c bar.c PROPERTIES LANGUAGE CXX)
9 target_link_libraries(SetLang foo)
10 set_target_properties(SetLang PROPERTIES LINKER_LANGUAGE CXX)