[Polly][NewPM] Reenable ScopPassManager unittest
[polly-mirror.git] / unittests / CMakeLists.txt
blobb7470580794ffbfbb3b3c5c69019cc319a54df86
1 add_custom_target(PollyUnitTests)
2 set_target_properties(PollyUnitTests PROPERTIES FOLDER "Polly")
4 # add_polly_unittest(test_dirname file1.cpp file2.cpp)
6 # Will compile the list of files together and link against Polly and its dependences.
7 function(add_polly_unittest test_name)
8   if(COMMAND add_unittest)
9     add_unittest(PollyUnitTests ${test_name} ${ARGN})
10   else()
11     add_executable(${test_name} EXCLUDE_FROM_ALL ${ARGN})
12     set_target_properties(${test_name} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
14     target_link_libraries(${test_name} gtest_main gtest)
15     add_dependencies(PollyUnitTests ${test_name})
17     set_property(TARGET ${test_name} PROPERTY FOLDER "Polly")
18   endif()
19   target_link_libraries(${test_name} Polly)
20 endfunction()
22 add_subdirectory(Isl)
23 add_subdirectory(Flatten)
24 add_subdirectory(DeLICM)
25 add_subdirectory(ScopPassManager)