blob: fac70383de948c241ac15a7ce2bfabba77709327 [file] [log] [blame]
Michael Kruse05cf9c22016-08-25 12:36:151add_custom_target(PollyUnitTests)
2set_target_properties(PollyUnitTests PROPERTIES FOLDER "Polly")
3
4# add_polly_unittest(test_dirname file1.cpp file2.cpp)
5#
6# Will compile the list of files together and link against Polly and its dependences.
7function(add_polly_unittest test_name)
8 if(COMMAND add_unittest)
9 add_unittest(PollyUnitTests ${test_name} ${ARGN})
10 else()
Michael Krusefd4a3322016-08-25 14:33:4411 add_executable(${test_name} EXCLUDE_FROM_ALL ${ARGN})
Michael Kruse05cf9c22016-08-25 12:36:1512 set_target_properties(${test_name} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
13
Shoaib Meenaid806af32017-12-05 21:49:5614 target_link_libraries(${test_name} PRIVATE gtest_main gtest)
Michael Kruse05cf9c22016-08-25 12:36:1515 add_dependencies(PollyUnitTests ${test_name})
16
17 set_property(TARGET ${test_name} PROPERTY FOLDER "Polly")
18 endif()
Shoaib Meenaid806af32017-12-05 21:49:5619 target_link_libraries(${test_name} PRIVATE Polly)
Michael Kruse05cf9c22016-08-25 12:36:1520endfunction()
21
22add_subdirectory(Isl)
Michael Kruse7886bd72016-09-08 15:02:3623add_subdirectory(Flatten)
Michael Krusee23e94a2017-02-15 16:59:1024add_subdirectory(DeLICM)
Philip Pfaffe483340b2017-05-23 11:28:5025add_subdirectory(ScopPassManager)
Tobias Grosserfeae3df2017-08-05 09:38:0926add_subdirectory(ScheduleOptimizer)
Philip Pfaffe52025af12018-06-29 08:17:0327add_subdirectory(Support)