xref: /llvm-project/llvm/unittests/Passes/Plugins/TestPlugin/CMakeLists.txt (revision 8e4f8259f75fa3415e3834058cd19a1ae52d9ec6)
1add_llvm_library(TestPlugin MODULE BUILDTREE_ONLY
2    TestPlugin.cpp
3    )
4
5# Put PLUGIN next to the unit test executable.
6set_output_directory(TestPlugin
7    BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/../
8    LIBRARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/../
9    )
10set_target_properties(TestPlugin PROPERTIES FOLDER "Tests")
11
12# The plugin depends on some of the output files of intrinsics_gen, so make sure
13# it is built before the plugin.
14add_dependencies(TestPlugin intrinsics_gen)
15add_dependencies(PluginsTests TestPlugin)
16