You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
347 B
11 lines
347 B
15 years ago
|
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)
|