Break circular dependency between FIR dialect and utilities
[llvm-project.git] / flang / unittests / Optimizer / CMakeLists.txt
blobd55d69598b153bc8a80851d68d8216ccc96b6a18
1 get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
3 set(LIBS
4   FIRBuilder
5   FIRCodeGen
6   FIRDialect
7   FIRDialectSupport
8   FIRSupport
9   HLFIRDialect
10   ${dialect_libs}
11   LLVMTargetParser
14 add_flang_unittest(FlangOptimizerTests
15   Builder/CharacterTest.cpp
16   Builder/ComplexTest.cpp
17   Builder/DoLoopHelperTest.cpp
18   Builder/FIRBuilderTest.cpp
19   Builder/HLFIRToolsTest.cpp
20   Builder/Runtime/AllocatableTest.cpp
21   Builder/Runtime/AssignTest.cpp
22   Builder/Runtime/CommandTest.cpp
23   Builder/Runtime/CharacterTest.cpp
24   Builder/Runtime/DerivedTest.cpp
25   Builder/Runtime/NumericTest.cpp
26   Builder/Runtime/RaggedTest.cpp
27   Builder/Runtime/ReductionTest.cpp
28   Builder/Runtime/StopTest.cpp
29   Builder/Runtime/TransformationalTest.cpp
30   FIRContextTest.cpp
31   FIRTypesTest.cpp
32   FortranVariableTest.cpp
33   InternalNamesTest.cpp
34   KindMappingTest.cpp
35   RTBuilder.cpp
36 DEPENDS
37   FIRDialect
38   FIRSupport
39   HLFIRDialect
40   ${dialect_libs})
42 target_link_libraries(FlangOptimizerTests
43   PRIVATE
44   ${LIBS})