CMakeLists.txt
1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
# RuntimeTesting needs exceptions enabled
set(LLVM_REQUIRES_EH ON)
set(LLVM_REQUIRES_RTTI ON)
add_library(RuntimeTesting
testing.cpp
)
llvm_update_compile_flags(RuntimeTesting)
target_link_libraries(RuntimeTesting
FortranRuntime
LLVMSupport
)
add_executable(format-test
format.cpp
)
target_link_libraries(format-test
RuntimeTesting
FortranRuntime
LLVMSupport
)
add_test(NAME Format COMMAND format-test)
add_executable(hello-world
hello.cpp
)
target_link_libraries(hello-world
RuntimeTesting
FortranRuntime
LLVMSupport
)
add_test(NAME HelloWorld COMMAND hello-world)
add_executable(external-hello-world
external-hello.cpp
)
target_link_libraries(external-hello-world
FortranRuntime
LLVMSupport
)
add_executable(external-io
external-io.cpp
)
target_link_libraries(external-io
RuntimeTesting
FortranRuntime
LLVMSupport
)
add_test(NAME ExternalIO COMMAND external-io)
add_executable(list-input-test
list-input.cpp
)
target_link_libraries(list-input-test
RuntimeTesting
FortranRuntime
LLVMSupport
)
add_test(NAME ListInput COMMAND list-input-test)
add_executable(character-test
character.cpp
)
target_link_libraries(character-test
RuntimeTesting
FortranRuntime
LLVMSupport
)
add_test(NAME CharacterTest COMMAND character-test)