Extend the signature try_compile(RESULT_VAR <bindir> <srcfile> ...) to allow multiple sources as try_compile(RESULT_VAR <bindir> SOURCES <srcfile>... ...) Process the sources to generate a CMakeLists.txt that enables all needed languages. Teach the TryCompile test to try cases with two sources of the same language and of mixed languages. Teach RunCMake.try_compile to cover error cases for the signature.
16 lines
339 B
CMake
16 lines
339 B
CMake
include(RunCMake)
|
|
|
|
run_cmake(NoArgs)
|
|
run_cmake(OneArg)
|
|
run_cmake(TwoArgs)
|
|
run_cmake(NoCopyFile)
|
|
run_cmake(NoCopyFile2)
|
|
run_cmake(NoOutputVariable)
|
|
run_cmake(NoOutputVariable2)
|
|
run_cmake(NoSources)
|
|
run_cmake(BadLinkLibraries)
|
|
run_cmake(BadSources1)
|
|
run_cmake(BadSources2)
|
|
run_cmake(NonSourceCopyFile)
|
|
run_cmake(NonSourceCompileDefinitions)
|