llvm/flang/examples/CMakeLists.txt
Andrzej Warzynski 7ccacaf442 [flang][examples] Add missing CMake dependencies
Currently, everything that includes "flang/Parser/parse-tree.h" in Flang
depends on the `gen_acc` and `gen_omp` CMake targets (these targets
generate include files that are used in "parse-tree.h"). The examples in
Flang do use this header file and hence also depend on
`gen_acc`/`gen_omp`. This patch updates relevant CMake scripts
accordingly.

I've also taken the liberty to rename some of the example files so that
their names follow LLVM's coding guidelines.

Differential Revision: https://reviews.llvm.org/D117016
2022-01-24 09:34:46 +00:00

16 lines
319 B
CMake

if(NOT FLANG_BUILD_EXAMPLES)
set(EXCLUDE_FROM_ALL ON)
endif()
# This test is not run by default as it requires input.
add_executable(external-hello-world
external-hello.cpp
)
target_link_libraries(external-hello-world
FortranRuntime
)
add_subdirectory(PrintFlangFunctionNames)
add_subdirectory(FlangOmpReport)