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.
15 lines
437 B
15 lines
437 B
2 years ago
|
include(${CMAKE_CURRENT_SOURCE_DIR}/${try_compile_DEFS})
|
||
|
|
||
|
enable_language(C)
|
||
|
|
||
|
try_compile(RESULT ${try_compile_bindir_or_SOURCES}
|
||
|
${CMAKE_CURRENT_SOURCE_DIR}/src.c
|
||
|
COPY_FILE "${CMAKE_CURRENT_BINARY_DIR}/out.bin"
|
||
|
COMPILE_OUTPUT_VARIABLE compOutputVar
|
||
|
RUN_OUTPUT_VARIABLE runOutputVar
|
||
|
RUN_OUTPUT_STDOUT_VARIABLE runOutputStdOutVar
|
||
|
RUN_OUTPUT_STDERR_VARIABLE runOutputStdErrVar
|
||
|
WORKING_DIRECTORY runWorkDir
|
||
|
ARGS runArgs
|
||
|
)
|