Debian Codegraph @

Tests/TryCompile/Inner/CMakeLists.txt

raw
1 cmake_minimum_required(VERSION 3.10)
2 project(TryCompileInner C)
3
4 try_compile(SHOULD_PASS
5 ${TryCompileInner_BINARY_DIR}
6 ${TryCompileInner_SOURCE_DIR}/../pass.c
7 OUTPUT_VARIABLE TRY_OUT
8 )
9 if(NOT SHOULD_PASS)
10 message(FATAL_ERROR "Inner try-compile SHOULD_PASS failed!")
11 endif()
12
13 add_library(innerlib innerlib.c)
14 add_executable(innerexe innerexe.c)
15 target_link_libraries(innerexe innerlib)