xref: /llvm-project/llvm/unittests/Passes/Plugins/DoublerPlugin/CMakeLists.txt (revision 8e4f8259f75fa3415e3834058cd19a1ae52d9ec6)
1add_llvm_library(DoublerPlugin MODULE BUILDTREE_ONLY
2    DoublerPlugin.cpp
3    )
4
5# Put PLUGIN next to the unit test executable.
6set_output_directory(DoublerPlugin
7    BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/../
8    LIBRARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/../
9    )
10set_target_properties(DoublerPlugin 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(DoublerPlugin intrinsics_gen)
15add_dependencies(PluginsTests DoublerPlugin)
16