mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 20:49:41 +00:00
07fc7b75ef
Add a test case that enables CXX in the top level and C in a subdirectory. Create an executable in the top level that uses C objects compiled in the subdirectory. Strictly speaking this is not defined behavior for all language combinations, but happens to work in this case. Test this behavior since projects might try to use it.
5 lines
142 B
CMake
5 lines
142 B
CMake
cmake_minimum_required(VERSION 3.0)
|
|
project(CxxSubdirC CXX)
|
|
add_subdirectory(Cdir)
|
|
add_executable(CxxSubdirC main.cxx $<TARGET_OBJECTS:Cobj>)
|