mirror of
https://github.com/reactos/CMake.git
synced 2025-02-22 21:11:43 +00:00
Add testing for when C sources are compiled with C++ compiler
This commit is contained in:
parent
889a119474
commit
e92c98f4b0
@ -1,5 +1,5 @@
|
||||
# a simple test case
|
||||
PROJECT (simple)
|
||||
ADD_EXECUTABLE (simple simple.cxx)
|
||||
ADD_LIBRARY(simpleLib STATIC simpleLib.cxx)
|
||||
ADD_LIBRARY(simpleLib STATIC simpleLib.cxx simpleCLib.c)
|
||||
TARGET_LINK_LIBRARIES(simple simpleLib)
|
||||
|
11
Tests/Simple/simpleCLib.c
Normal file
11
Tests/Simple/simpleCLib.c
Normal file
@ -0,0 +1,11 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int FooBar()
|
||||
{
|
||||
int class;
|
||||
int private = 10;
|
||||
for ( class = 0; class < private; class ++ )
|
||||
{
|
||||
printf("Count: %d/%d\n", class, private);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user