llvm-project/polly/lib/CMakeLists.txt

47 lines
776 B
CMake
Raw Normal View History

add_subdirectory(Analysis)
add_subdirectory(CodeGen)
add_subdirectory(Exchange)
add_subdirectory(Support)
add_subdirectory(JSON)
set(MODULE TRUE)
set(LLVM_NO_RTTI 1)
if (SCOPLIB_FOUND)
set(POLLY_SCOPLIB_FILES Pocc.cpp)
endif (SCOPLIB_FOUND)
set(LLVM_USED_LIBS
PollyAnalysis
PollyCodeGen
PollyExchange
PollySupport
PollyJSON
)
add_polly_library(LLVMPolly
CodePreparation.cpp
DeadCodeElimination.cpp
IndependentBlocks.cpp
IndVarSimplify.cpp
MayAliasSet.cpp
Pocc.cpp
RegionSimplify.cpp
RegisterPasses.cpp
ScheduleOptimizer.cpp
${POLLY_SCOPLIB_FILES}
)
add_dependencies(LLVMPolly
PollyAnalysis
PollyCodeGen
PollyExchange
PollySupport
PollyJSON
)
set_target_properties(LLVMPolly
PROPERTIES
LINKER_LANGUAGE CXX
PREFIX "")