summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2011-01-30 15:57:02 +0100
committerGuillaume Seguin <guillaume@segu.in>2011-01-30 16:01:24 +0100
commit41c6b0a1686676ed9913d195d8b389cfed0287d0 (patch)
treeb86bd6482e0627b03d3e6b10b105009851d1f2f6
parent2b3cb46b117d061982c61616ffd973b18ad6f41b (diff)
downloadspacetimemanifolds-41c6b0a1686676ed9913d195d8b389cfed0287d0.tar.gz
spacetimemanifolds-41c6b0a1686676ed9913d195d8b389cfed0287d0.tar.bz2
Add CMake build system
-rw-r--r--CMakeLists.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..f0d97f7
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,18 @@
+PROJECT(VideoStitcher)
+CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
+
+FIND_PACKAGE(OpenCV REQUIRED)
+FIND_PACKAGE(OpenMP REQUIRED)
+
+ADD_EXECUTABLE(${PROJECT_NAME} stitch.cc stitch.h
+ tictoc.cc tictoc.h
+ explore.cc explore.h
+ compute.cc compute.h
+ pyramid.cc pyramid.h
+ path.cc path.h
+ utils.cc utils.h
+ xtslice.cc xtslice.h
+ main.cc)
+
+SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS} -msse")
+TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${OpenCV_LIBS} gomp rt)