[llvm-commits] [polly] r145072 - in /polly/trunk/lib: CMakeLists.txt Exchange/CMakeLists.txt
Tobias Grosser
grosser at fim.uni-passau.de
Tue Nov 22 11:40:24 PST 2011
Author: grosser
Date: Tue Nov 22 13:40:24 2011
New Revision: 145072
URL: http://llvm.org/viewvc/llvm-project?rev=145072&view=rev
Log:
cmake: Create libPollyExchange as in the autoconf build
Added:
polly/trunk/lib/Exchange/CMakeLists.txt
Modified:
polly/trunk/lib/CMakeLists.txt
Modified: polly/trunk/lib/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CMakeLists.txt?rev=145072&r1=145071&r2=145072&view=diff
==============================================================================
--- polly/trunk/lib/CMakeLists.txt (original)
+++ polly/trunk/lib/CMakeLists.txt Tue Nov 22 13:40:24 2011
@@ -1,24 +1,18 @@
add_subdirectory(Analysis)
+add_subdirectory(Exchange)
add_subdirectory(Support)
add_subdirectory(JSON)
set(MODULE TRUE)
set(LLVM_NO_RTTI 1)
-if (OPENSCOP_FOUND)
- set(POLLY_EXCHANGE_FILES
- Exchange/OpenScopImporter.cpp Exchange/OpenScopExporter.cpp)
-endif (OPENSCOP_FOUND)
if (SCOPLIB_FOUND)
- set(POLLY_SCOPLIB_FILES
- Pocc.cpp
- Exchange/ScopLib.cpp
- Exchange/ScopLibExporter.cpp
- Exchange/ScopLibImporter.cpp)
+ set(POLLY_SCOPLIB_FILES Pocc.cpp)
endif (SCOPLIB_FOUND)
set(LLVM_USED_LIBS
PollyAnalysis
+ PollyExchange
PollySupport
PollyJSON
)
@@ -33,13 +27,12 @@
RegionSimplify.cpp
RegisterPasses.cpp
ScheduleOptimizer.cpp
- Exchange/JSONExporter.cpp
- ${POLLY_EXCHANGE_FILES}
${POLLY_SCOPLIB_FILES}
)
add_dependencies(LLVMPolly
PollyAnalysis
+ PollyExchange
PollySupport
PollyJSON
)
Added: polly/trunk/lib/Exchange/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Exchange/CMakeLists.txt?rev=145072&view=auto
==============================================================================
--- polly/trunk/lib/Exchange/CMakeLists.txt (added)
+++ polly/trunk/lib/Exchange/CMakeLists.txt Tue Nov 22 13:40:24 2011
@@ -0,0 +1,18 @@
+if (OPENSCOP_FOUND)
+ set(POLLY_OPENSCOP_FILES
+ OpenScopImporter.cpp
+ OpenScopExporter.cpp)
+endif (OPENSCOP_FOUND)
+
+if (SCOPLIB_FOUND)
+ set(POLLY_SCOPLIB_FILES
+ ScopLib.cpp
+ ScopLibExporter.cpp
+ ScopLibImporter.cpp)
+endif (SCOPLIB_FOUND)
+
+add_polly_library(PollyExchange
+ JSONExporter.cpp
+ ${POLLY_OPENSCOP_FILES}
+ ${POLLY_SCOPLIB_FILES}
+)
More information about the llvm-commits
mailing list