]> rtime.felk.cvut.cz Git - opencv.git/commitdiff
updated CMake & autotools files according to the new project structure
authorvp153 <vp153@73c94f0f-984f-4a5f-82bc-2d8db8d8ee08>
Mon, 8 Dec 2008 01:46:55 +0000 (01:46 +0000)
committervp153 <vp153@73c94f0f-984f-4a5f-82bc-2d8db8d8ee08>
Mon, 8 Dec 2008 01:46:55 +0000 (01:46 +0000)
git-svn-id: https://code.ros.org/svn/opencv/trunk@1409 73c94f0f-984f-4a5f-82bc-2d8db8d8ee08

32 files changed:
opencv/3rdparty/libjasper/CMakeLists.txt
opencv/3rdparty/libjpeg/CMakeLists.txt
opencv/3rdparty/libpng/CMakeLists.txt
opencv/3rdparty/libtiff/CMakeLists.txt
opencv/3rdparty/zlib/CMakeLists.txt
opencv/CMakeLists.txt
opencv/Makefile.am
opencv/apps/haartraining/CMakeLists.txt
opencv/apps/haartraining/Makefile.am
opencv/configure.in
opencv/doc/CMakeLists.txt
opencv/doc/Makefile.am
opencv/interfaces/swig/octave/Makefile.am
opencv/interfaces/swig/python/CMakeLists.txt
opencv/interfaces/swig/python/Makefile.am
opencv/src/CMakeLists.txt
opencv/src/cv/CMakeLists.txt
opencv/src/cv/Makefile.am
opencv/src/cvaux/CMakeLists.txt
opencv/src/cvaux/Makefile.am
opencv/src/cxcore/CMakeLists.txt
opencv/src/cxcore/Makefile.am
opencv/src/highgui/CMakeLists.txt
opencv/src/highgui/Makefile.am
opencv/src/ml/CMakeLists.txt
opencv/src/ml/Makefile.am
opencv/tests/cv/src/Makefile.am
opencv/tests/cxcore/src/Makefile.am
opencv/tests/cxts/Makefile.am
opencv/tests/octave/Makefile.am
opencv/tests/python/Makefile.am
opencv/utils/Makefile.am

index b69863e43dbe4aa82fe6e565d8e255e7a245f657..41130a8ab2f680f565cd16324fc8f4e91091e5ef 100644 (file)
@@ -1,13 +1,13 @@
 # ----------------------------------------------------------------------------
-#  CMake file for libjasper. See root CMakeLists.txt 
+#  CMake file for libjasper. See root CMakeLists.txt
 #
 # ----------------------------------------------------------------------------
 project(libjasper)
 
 # List of C++ files:
 include_directories(
-       ${CMAKE_CURRENT_SOURCE_DIR} 
-       ${CMAKE_SOURCE_DIR}/otherlibs/_graphics/include
+       ${CMAKE_CURRENT_SOURCE_DIR}
+       "${CMAKE_CURRENT_SOURCE_DIR}/../include"
        )
 
 # The .cpp files:
@@ -27,15 +27,9 @@ if(MSVC)
     add_definitions(-DJAS_WIN_MSVC_BUILD)
 endif()
 
-set_target_properties(${the_target} 
-       PROPERTIES 
+set_target_properties(${the_target}
+       PROPERTIES
        OUTPUT_NAME "${the_target}"
        DEBUG_POSTFIX "d"
-       ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/otherlibs/_graphics/lib
+       ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/3rdparty/lib"
        )
-
-#install(TARGETS ${the_target}
-#      RUNTIME DESTINATION bin
-#      LIBRARY DESTINATION lib
-#      ARCHIVE DESTINATION lib
-#      )
index 75a4de8eb607edd5c68008d743fd2d56a542456e..e620857881e0d2697e927f2d28584a522531d37d 100644 (file)
@@ -1,5 +1,5 @@
 # ----------------------------------------------------------------------------
-#  CMake file for libjpeg. See root CMakeLists.txt 
+#  CMake file for libjpeg. See root CMakeLists.txt
 #
 # ----------------------------------------------------------------------------
 project(libjpeg)
@@ -7,8 +7,8 @@ project(libjpeg)
 # List of C++ files:
 
 include_directories(
-       ${CMAKE_CURRENT_SOURCE_DIR} 
-       ${CMAKE_SOURCE_DIR}/otherlibs/_graphics/include
+       ${CMAKE_CURRENT_SOURCE_DIR}
+       "${CMAKE_CURRENT_SOURCE_DIR}/../include"
        )
 
 # The .cpp files:
@@ -25,17 +25,10 @@ add_library(${the_target} STATIC ${lib_srcs} ${lib_hdrs})
 
 if(MSVC)
     set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W3")
-    add_definitions(-DJAS_WIN_MSVC_BUILD)
 endif()
 
-set_target_properties(${the_target} 
-       PROPERTIES OUTPUT_NAME "${the_target}" 
+set_target_properties(${the_target}
+       PROPERTIES OUTPUT_NAME "${the_target}"
        DEBUG_POSTFIX "d"
-       ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/otherlibs/_graphics/lib
+       ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/3rdparty/lib
        )
-
-#install(TARGETS ${the_target}
-#      RUNTIME DESTINATION bin
-#      LIBRARY DESTINATION lib
-#      ARCHIVE DESTINATION lib
-#      )
index 2ce957536cea9cbae531807a251facabf3b08a2d..b898d74b65e6ea7903aa9ab669b1b051cb2c2f2f 100644 (file)
@@ -1,5 +1,5 @@
 # ----------------------------------------------------------------------------
-#  CMake file for libpng. See root CMakeLists.txt 
+#  CMake file for libpng. See root CMakeLists.txt
 #
 # ----------------------------------------------------------------------------
 project(libpng)
@@ -7,8 +7,8 @@ project(libpng)
 # List of C++ files:
 
 include_directories(
-       ${CMAKE_CURRENT_SOURCE_DIR} 
-       ${CMAKE_SOURCE_DIR}/otherlibs/_graphics/include
+       "${CMAKE_CURRENT_SOURCE_DIR}"
+       "${CMAKE_CURRENT_SOURCE_DIR}/../include"
        )
 
 file(GLOB lib_srcs *.c)
@@ -26,14 +26,8 @@ if(MSVC)
     set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W3")
 endif()
 
-set_target_properties(${the_target} 
-       PROPERTIES OUTPUT_NAME "${the_target}" 
+set_target_properties(${the_target}
+       PROPERTIES OUTPUT_NAME "${the_target}"
        DEBUG_POSTFIX "d"
-       ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/otherlibs/_graphics/lib
+       ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/3rdparty/lib"
        )
-
-#INSTALL(TARGETS ${the_target}
-#      RUNTIME DESTINATION bin
-#      LIBRARY DESTINATION lib
-#      ARCHIVE DESTINATION lib
-#      )
index 12e11939699707e3ec888c04a5b76e5fac276ce5..3fece3f13a60c757afc1e8aef02d2cf40f14e818 100644 (file)
@@ -1,5 +1,5 @@
 # ----------------------------------------------------------------------------
-#  CMake file for libtiff. See root CMakeLists.txt 
+#  CMake file for libtiff. See root CMakeLists.txt
 #
 # ----------------------------------------------------------------------------
 project(libtiff)
@@ -7,8 +7,8 @@ project(libtiff)
 # List of C++ files:
 
 include_directories(
-       ${CMAKE_CURRENT_SOURCE_DIR} 
-       ${CMAKE_SOURCE_DIR}/otherlibs/_graphics/include
+       "${CMAKE_CURRENT_SOURCE_DIR}"
+       "${CMAKE_CURRENT_SOURCE_DIR}/../include"
        )
 
 # The .cpp files:
@@ -64,7 +64,7 @@ endif(WIN32)
 if(APPLE)
     set(lib_srcs ${lib_srcs} tif_apple.c)
 endif(APPLE)
-       
+
 file(GLOB lib_hdrs *.h*)
 
 set(the_target "libtiff")
@@ -75,15 +75,9 @@ if(MSVC)
     set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W3")
 endif()
 
-set_target_properties(${the_target} 
-       PROPERTIES 
-       OUTPUT_NAME "${the_target}" 
+set_target_properties(${the_target}
+       PROPERTIES
+       OUTPUT_NAME "${the_target}"
        DEBUG_POSTFIX "d"
-       ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/otherlibs/_graphics/lib
+       ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/3rdparty/lib/"
        )
-
-#install(TARGETS ${the_target}
-#      RUNTIME DESTINATION bin
-#      LIBRARY DESTINATION lib
-#      ARCHIVE DESTINATION lib
-#      )
index 7b1ffb4f5610da4a85814f260f94656e5b40caae..2d22c35a023547c9d0ddd828441feec78f00f904 100644 (file)
@@ -1,5 +1,5 @@
 # ----------------------------------------------------------------------------
-#  CMake file for zlib. See root CMakeLists.txt 
+#  CMake file for zlib. See root CMakeLists.txt
 #
 # ----------------------------------------------------------------------------
 PROJECT(zlib)
@@ -7,8 +7,8 @@ PROJECT(zlib)
 # List of C++ files:
 
 include_directories(
-    ${CMAKE_CURRENT_SOURCE_DIR} 
-    ${CMAKE_SOURCE_DIR}/otherlibs/_graphics/include
+    "${CMAKE_CURRENT_SOURCE_DIR}"
+    "${CMAKE_CURRENT_SOURCE_DIR}/../include"
     )
 
 file(GLOB lib_srcs *.c)
@@ -22,15 +22,9 @@ if(MSVC)
     set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W3")
 endif()
 
-set_target_properties(${the_target} 
-    PROPERTIES 
-        OUTPUT_NAME "${the_target}" 
+set_target_properties(${the_target}
+    PROPERTIES
+        OUTPUT_NAME "${the_target}"
         DEBUG_POSTFIX "d"
-        ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/otherlibs/_graphics/lib
+        ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/3rdparty/lib"
     )
-
-#install(TARGETS ${the_target}
-#      RUNTIME DESTINATION bin
-#      LIBRARY DESTINATION lib
-#      ARCHIVE DESTINATION lib
-#      )
index 0fd2129aecf6ca2e5304b25eca8ea65780822a04..97837ac25336ee05d4e48fc34305c018c8fe0295 100644 (file)
@@ -3,7 +3,7 @@
 #
 #    From the off-tree build directory, invoke:
 #      $ cmake <PATH_TO_OPENCV_ROOT>
-#   
+#
 #
 #   - OCT-2008: Initial version <joseluisblancoc@gmail.com>
 #
@@ -132,7 +132,7 @@ set(BUILD_TESTS ON CACHE BOOL "Build tests")
 if(UNIX)
     include(FindPkgConfig OPTIONAL)
     include(CheckFunctionExists)
-    include(CheckIncludeFile) 
+    include(CheckIncludeFile)
 endif()
 
 if(CMAKE_COMPILER_IS_GNUCXX)
@@ -143,7 +143,7 @@ endif()
 
 # ===================================================
 # Macros that checks if module have been installed.
-# After it adds module to build and define 
+# After it adds module to build and define
 # constants passed as second arg
 # ===================================================
 
@@ -157,7 +157,7 @@ macro(CHECK_MODULE module_name define)
         set(ALIAS_LIBRARIES         ${ALIAS}_LIBRARIES)
 
         PKG_CHECK_MODULES(${ALIAS} ${module_name})
-        
+
         if (${ALIAS_FOUND})
             set(${define} 1)
             foreach(P "${ALIAS_INCLUDE_DIRS}")
@@ -195,16 +195,12 @@ if(UNIX)
 
     CHECK_MODULE(libdc1394 HAVE_DC1394)
 
-    CHECK_MODULE(libxine HAVE_XINE)
-
-    CHECK_INCLUDE_FILE(linux/videodev.h HAVE_CAMV4L)
-    CHECK_INCLUDE_FILE(linux/videodev2.h HAVE_CAMV4L2)
-    CHECK_INCLUDE_FILE(alloca.h HAVE_ALLOCA_H)
-    CHECK_INCLUDE_FILE(unistd.h HAVE_UNISTD_H)
-    CHECK_INCLUDE_FILE(pthread.h HAVE_LIBPTHREAD)
-    CHECK_FUNCTION_EXISTS(alloca HAVE_ALLOCA)
-
     if(NOT APPLE)
+        CHECK_INCLUDE_FILE(alloca.h HAVE_ALLOCA_H)
+        CHECK_FUNCTION_EXISTS(alloca HAVE_ALLOCA)
+        CHECK_INCLUDE_FILE(unistd.h HAVE_UNISTD_H)
+        CHECK_INCLUDE_FILE(pthread.h HAVE_LIBPTHREAD)
+
         CHECK_MODULE(libxine HAVE_XINE)
         CHECK_INCLUDE_FILE(linux/videodev.h HAVE_CAMV4L)
         CHECK_INCLUDE_FILE(linux/videodev2.h HAVE_CAMV4L2)
@@ -215,7 +211,9 @@ if(UNIX)
         include(FindJasper)
 
         set(OPENCV_LINKER_LIBS dl m pthread)
-    endif()    
+    else()
+        add_definitions(-DHAVE_ALLOCA -DHAVE_ALLOCA_H -DHAVE_LIBPTHREAD -DHAVE_UNISTD_H)
+    endif()
 endif()
 
 set(BUILD_PYTHON_SUPPORT OFF CACHE BOOL "Build with Python support")
@@ -231,7 +229,7 @@ find_package(PythonLibs)
 # ===================================================
 if(PYTHONLIBS_FOUND AND BUILD_PYTHON_SUPPORT)
     execute_process(COMMAND ${PYTHON_EXECUTABLE} --version
-              ERROR_VARIABLE PYTHON_VERSION_FULL 
+              ERROR_VARIABLE PYTHON_VERSION_FULL
               OUTPUT_STRIP_TRAILING_WHITESPACE)
 
     string(REGEX MATCH "[0-9].[0-9]" PYTHON_VERSION_MAJOR_MINOR "${PYTHON_VERSION_FULL}")
@@ -246,20 +244,6 @@ endif()
 
 endif()
 
-# ---------------------------------------------------------------
-#   "Classic" function & headers detection:
-# ---------------------------------------------------------------
-if(UNIX)
-    if(NOT APPLE)
-        CHECK_FUNCTION_EXISTS(alloca HAVE_ALLOCA)
-        CHECK_INCLUDE_FILE(alloca.h HAVE_ALLOCA_H)
-        CHECK_INCLUDE_FILE(unistd.h HAVE_UNISTD_H)
-        CHECK_INCLUDE_FILE(pthread.h HAVE_LIBPTHREAD)
-    else()
-        add_definitions(-DHAVE_ALLOCA -DHAVE_ALLOCA_H -DHAVE_LIBPTHREAD -DHAVE_UNISTD_H)
-    endif()    
-endif()
-
 # ----------------------------------------------------------------------------
 #                              UPDATE CONFIG FILES & SCRIPTS:
 #
@@ -280,14 +264,11 @@ configure_file("${CMAKE_SOURCE_DIR}/cvconfig.h.cmake" "${OPENCV_CONFIG_FILE_INCL
 # ---------------------------------------------------------------------------
 # The C+//0 include & link directories:
 # ---------------------------------------------------------------------------
-include_directories(".")
-include_directories("${OPENCV_CONFIG_FILE_INCLUDE_DIR}")
-include_directories("${CMAKE_SOURCE_DIR}/cv/include")
-include_directories("${CMAKE_SOURCE_DIR}/cv/src")
-include_directories("${CMAKE_SOURCE_DIR}/cvaux/include")
-include_directories("${CMAKE_SOURCE_DIR}/cxcore/include")
-include_directories("${CMAKE_SOURCE_DIR}/ml/include")
-include_directories("${CMAKE_SOURCE_DIR}/otherlibs/highgui")
+include_directories("."
+    "${OPENCV_CONFIG_FILE_INCLUDE_DIR}"
+    "${CMAKE_SOURCE_DIR}/include"
+    "${CMAKE_SOURCE_DIR}/include/opencv"
+    )
 
 # ----------------------------------------------------------------------------
 #                      Set the maximum level of warnings:
@@ -327,7 +308,7 @@ if(MSVC)
 endif()
 
 if(CMAKE_COMPILER_IS_GNUCXX)
-    # High level of warnings. 
+    # High level of warnings.
     # The -Wno-long-long is required in 64bit systems when including sytem headers.
     set(EXTRA_C_FLAGS "${EXTRA_C_FLAGS} -Wall")
 
@@ -355,7 +336,7 @@ if(CMAKE_COMPILER_IS_GNUCXX)
         # Remove unreferenced functions: function level linking
         if(NOT APPLE)
             set(EXTRA_C_FLAGS "${EXTRA_C_FLAGS} -ffunction-sections")
-        endif()    
+        endif()
     endif()
 
     # Parallel mode
@@ -365,7 +346,7 @@ if(CMAKE_COMPILER_IS_GNUCXX)
 
     set(EXTRA_C_FLAGS_RELEASE "${EXTRA_C_FLAGS_RELEASE} -DNDEBUG")
     set(EXTRA_C_FLAGS_DEBUG "${EXTRA_C_FLAGS_DEBUG} -O0 -DDEBUG -D_DEBUG")
-    
+
     if(OPENCV_USE_SSE2)
           set(EXTRA_C_FLAGS "${EXTRA_C_FLAGS} -msse2")
     endif()
@@ -404,19 +385,14 @@ set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin CACHE PATH "Output directory
 #-----------------------------------
 # Subdirectories:
 #-----------------------------------
-add_subdirectory(cxcore)
-add_subdirectory(cv)
-add_subdirectory(cvaux)
-add_subdirectory(ml)
-add_subdirectory(otherlibs)
+add_subdirectory(src)
+add_subdirectory(apps)
+add_subdirectory(doc)
 
 if(BUILD_EXAMPLES)
     add_subdirectory(samples)
 endif()
 
-add_subdirectory(apps)
-add_subdirectory(docs)
-
 if(BUILD_TESTS)
     enable_testing()
     add_subdirectory(tests)
@@ -426,6 +402,10 @@ if(SWIG_FOUND)
     add_subdirectory(interfaces)
 endif()
 
+if(WIN32)
+    add_subdirectory(3rdparty)
+endif()
+
 # --------------------------------------------------------------------------------------------
 #   Installation for CMake Module:  OpenCVConfig.cmake
 #  Part 1/2: ${BIN_DIR}/OpenCVConfig.cmake              -> For use *without* "make install"
@@ -436,18 +416,15 @@ endif()
 #  Part 1/2: ${BIN_DIR}/OpenCVConfig.cmake              -> For use *without* "make install"
 # -------------------------------------------------------------------------------------------
 
-# Name of libraries is: libcv110.so, etc... 
+# Name of libraries is: libcv110.so, etc...
 #  OPENCV_DLLVERSION must be set to "110", etc..
 # Already done above.
 
 # Set CMAKE_INCLUDE_DIRS_CONFIGCMAKE to the list of include directories:
 set(CMAKE_INCLUDE_DIRS_CONFIGCMAKE)
 list(APPEND CMAKE_INCLUDE_DIRS_CONFIGCMAKE "${OPENCV_CONFIG_FILE_INCLUDE_DIR}")
-list(APPEND CMAKE_INCLUDE_DIRS_CONFIGCMAKE "${CMAKE_SOURCE_DIR}/cv/include")
-list(APPEND CMAKE_INCLUDE_DIRS_CONFIGCMAKE "${CMAKE_SOURCE_DIR}/cvaux/include")
-list(APPEND CMAKE_INCLUDE_DIRS_CONFIGCMAKE "${CMAKE_SOURCE_DIR}/cxcore/include")
-list(APPEND CMAKE_INCLUDE_DIRS_CONFIGCMAKE "${CMAKE_SOURCE_DIR}/ml/include")
-list(APPEND CMAKE_INCLUDE_DIRS_CONFIGCMAKE "${CMAKE_SOURCE_DIR}/otherlibs/highgui")
+list(APPEND CMAKE_INCLUDE_DIRS_CONFIGCMAKE "${CMAKE_SOURCE_DIR}/include")
+list(APPEND CMAKE_INCLUDE_DIRS_CONFIGCMAKE "${CMAKE_SOURCE_DIR}/include/opencv")
 
 set(CMAKE_LIB_DIRS_CONFIGCMAKE ${LIBRARY_OUTPUT_PATH})
 
index 964d12db25576c4ecfd087211077c57fe6407188..09972ed8a152f0e8b99c5c82b0e5b5b94feb6fc3 100644 (file)
@@ -3,7 +3,7 @@
 # use the default c++ flags
 AM_CXXFLAGS=@DEF_CXXFLAGS@
 
-# tell make where aclocal finds its files in Maintainer Mode 
+# tell make where aclocal finds its files in Maintainer Mode
 ACLOCAL_AMFLAGS = -I ./autotools/aclocal
 
 ## Any directories that you want built and installed should go here.
@@ -12,13 +12,13 @@ if BUILD_APPS
 else
   APPS_DIR =
 endif
-SUBDIRS = cxcore cv cvaux ml otherlibs utils interfaces $(APPS_DIR) tests samples data docs
+SUBDIRS = src include utils interfaces $(APPS_DIR) tests samples data doc
 
 # All the rest of the distributed files
 #EXTRA_DIST = THANKS COPYING INSTALL README NEWS ChangeLog \
 EXTRA_DIST = THANKS TODO \
              opencv.spec opencv.spec.in opencv.pc.in opencv.pc \
-             _make apps filters make_frameworks.sh
+             apps make_frameworks.sh
 
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = opencv.pc
@@ -34,9 +34,9 @@ $(PACKAGE)-$(VERSION).tar.gz: dist
 
 dist-hook:
        rm -rf `find $(distdir) -name CVS`
-       chmod u+x $(srcdir)/utils/unix2dos.py
-       find $(distdir) -name *.dsw -exec $(srcdir)/utils/unix2dos.py {} \;
-       find $(distdir) -name *.dsp -exec $(srcdir)/utils/unix2dos.py {} \;
+#      chmod u+x $(srcdir)/utils/unix2dos.py
+#      find $(distdir) -name *.dsw -exec $(srcdir)/utils/unix2dos.py {} \;
+#      find $(distdir) -name *.dsp -exec $(srcdir)/utils/unix2dos.py {} \;
 
 # Rule to build RPM distribution package
 rpm: $(PACKAGE)-$(VERSION).tar.gz
@@ -64,13 +64,13 @@ clean-local: clean-framework
 # It currently creates a private framework (see Apple documentation) that
 # cannot be placed to the /Library/Framework locations but is intended to get
 # copied into application bundles.
-# 
+#
 # You should usually not invoke this target directly but use the shell script
 # 'make_frameworks.sh' instead that will create the most sensible
 # default installation (universal build).
-# 
+#
 # See: http://developer.apple.com/documentation/MacOSX/Conceptual/BPFrameworks/
-# 
+#
 
 FRAMEWORK_NAME = OpenCV
 FRAMEWORK_VERSION = A
@@ -87,37 +87,37 @@ FRAMEWORK_INSTALL_NAME = $(FRAMEWORK_INSTALL_PATH)/$(FRAMEWORK_NAME).framework/V
 
 FRAMEWORK_XHEADERS = \
   $(top_srcdir)/autotools/darwin/OpenCV.h     \
-  $(top_srcdir)/cxcore/include/cxcore.h       \
-  $(top_srcdir)/cxcore/include/cxerror.h      \
-  $(top_srcdir)/cxcore/include/cxtypes.h      \
-  $(top_srcdir)/cxcore/include/cxmisc.h       \
-  $(top_srcdir)/cxcore/include/cxcore.hpp     \
-  $(top_srcdir)/cxcore/include/cvver.h        \
-  $(top_srcdir)/cv/include/cv.h               \
-  $(top_srcdir)/cv/include/cvcompat.h         \
-  $(top_srcdir)/cv/include/cvtypes.h          \
-  $(top_srcdir)/cv/include/cv.hpp             \
-  $(top_srcdir)/cvaux/include/cvaux.h         \
-  $(top_srcdir)/cvaux/include/cvmat.hpp       \
-  $(top_srcdir)/cvaux/include/cvaux.hpp       \
-  $(top_srcdir)/cvaux/include/cvvidsurv.hpp   \
-  $(top_srcdir)/ml/include/ml.h               \
-  $(top_srcdir)/otherlibs/highgui/highgui.h
+  $(top_srcdir)/include/opencv/cxcore.h       \
+  $(top_srcdir)/include/opencv/cxerror.h      \
+  $(top_srcdir)/include/opencv/cxtypes.h      \
+  $(top_srcdir)/include/opencv/cxmisc.h       \
+  $(top_srcdir)/include/opencv/cxcore.hpp     \
+  $(top_srcdir)/include/opencv/cvver.h        \
+  $(top_srcdir)/include/opencv/cv.h           \
+  $(top_srcdir)/include/opencv/cvcompat.h     \
+  $(top_srcdir)/include/opencv/cvtypes.h      \
+  $(top_srcdir)/include/opencv/cv.hpp         \
+  $(top_srcdir)/include/opencv/cvaux.h        \
+  $(top_srcdir)/include/opencv/cvmat.hpp      \
+  $(top_srcdir)/include/opencv/cvaux.hpp      \
+  $(top_srcdir)/include/opencv/cvvidsurv.hpp  \
+  $(top_srcdir)/include/opencv/ml.h           \
+  $(top_srcdir)/include/opencv/highgui.h
 
 FRAMEWORK_OFILES = \
-  $(top_builddir)/cxcore/src/.libs/lib_cxcore.a  \
-  $(top_builddir)/cv/src/.libs/lib_cv.a          \
-  $(top_builddir)/cvaux/src/.libs/lib_cvaux.a    \
-  $(top_builddir)/ml/src/.libs/lib_ml.a          \
-  $(top_builddir)/otherlibs/highgui/.libs/lib_highgui.a
+  $(top_builddir)/src/cxcore/.libs/lib_cxcore.a  \
+  $(top_builddir)/src/cv/.libs/lib_cv.a          \
+  $(top_builddir)/src/cvaux/.libs/lib_cvaux.a    \
+  $(top_builddir)/src/ml/.libs/lib_ml.a          \
+  $(top_builddir)/src/highgui/.libs/lib_highgui.a
 
 FRAMEWORK_XLIBRARIES = -framework Carbon -framework QuickTime -framework QuartzCore
 
 FRAMEWORK_DOCUMENTATION = \
-  $(top_srcdir)/docs/license.txt \
-  $(top_srcdir)/docs/index.htm   \
-  $(top_srcdir)/docs/faq.htm     \
-  $(top_srcdir)/docs/ref
+  $(top_srcdir)/doc/license.txt \
+  $(top_srcdir)/doc/index.htm   \
+  $(top_srcdir)/doc/faq.htm     \
+  $(top_srcdir)/doc/ref
 
 FMWK_CC = g++ -dynamiclib -all_load -Wl,-single_module -Wl,-Y,100
 
index 3fcd6d0e130e395b55a63a6dd75a4a61f7f434cc..3fccea5c37ad8d1354c22df5f466015d706601dd 100644 (file)
@@ -1,30 +1,29 @@
 project(haartraining)
 
-include_directories(src)
-include_directories(include)
+include_directories("${CMAKE_CURRENT_SOURCE_DIR}")
 
 # -----------------------------------------------------------
-#  Library 
+#  Library
 # -----------------------------------------------------------
 set(cvhaartraining_lib_src
-    src/_cvcommon.h
-    src/cvclassifier.h    
-    src/_cvhaartraining.h
-    include/cvhaartraining.h
-    src/cvboost.cpp
-    src/cvcommon.cpp
-    src/cvhaarclassifier.cpp
-    src/cvhaartraining.cpp
-    src/cvsamples.cpp
+    _cvcommon.h
+    cvclassifier.h
+    _cvhaartraining.h
+    cvhaartraining.h
+    cvboost.cpp
+    cvcommon.cpp
+    cvhaarclassifier.cpp
+    cvhaartraining.cpp
+    cvsamples.cpp
     )
 
 add_library(cvhaartraining STATIC ${cvhaartraining_lib_src})
 
 # -----------------------------------------------------------
-#  haartraining 
+#  haartraining
 # -----------------------------------------------------------
 
-add_executable(haartraining include/cvhaartraining.h src/haartraining.cpp)
+add_executable(haartraining cvhaartraining.h haartraining.cpp)
 add_dependencies(haartraining cxcore cv cvhaartraining)
 target_link_libraries(haartraining cxcore cv cvhaartraining highgui)
 set_target_properties(haartraining PROPERTIES
@@ -32,10 +31,10 @@ set_target_properties(haartraining PROPERTIES
                       OUTPUT_NAME "opencv-haartraining")
 
 # -----------------------------------------------------------
-#  createsamples 
+#  createsamples
 # -----------------------------------------------------------
 
-add_executable(createsamples include/cvhaartraining.h src/createsamples.cpp)
+add_executable(createsamples cvhaartraining.h createsamples.cpp)
 add_dependencies(createsamples cxcore cv cvhaartraining)
 target_link_libraries(createsamples cxcore cv cvhaartraining highgui)
 set_target_properties(createsamples PROPERTIES
@@ -43,10 +42,10 @@ set_target_properties(createsamples PROPERTIES
                       OUTPUT_NAME "opencv-createsamples")
 
 # -----------------------------------------------------------
-#  performance 
+#  performance
 # -----------------------------------------------------------
-add_executable(performance src/performance.cpp)
-add_dependencies(performance cxcore cv cvhaartraining)
+add_executable(performance performance.cpp)
+add_dependencies(performance cxcore cv highgui cvhaartraining)
 target_link_libraries(performance cxcore cv cvhaartraining highgui)
 set_target_properties(performance PROPERTIES
                       DEBUG_POSTFIX "d"
@@ -62,4 +61,6 @@ install(TARGETS performance RUNTIME DESTINATION bin)
 
 file(GLOB HAAR_CASCADES ${CMAKE_SOURCE_DIR}/data/haarcascades/*.xml)
 
-install(FILES ${HAAR_CASCADES} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/opencv/haarcascades)
+if(UNIX)
+    install(FILES ${HAAR_CASCADES} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/opencv/haarcascades)
+endif()
index b420b9f6f41b37b4c80487bf27ee2f11815effa1..4d0fdbeff63956e92be61b8be9f1f8179ae01122 100644 (file)
@@ -7,9 +7,9 @@ bin_PROGRAMS = opencv-haartraining opencv-createsamples opencv-performance
 
 ALL_CV_LIBS =                                       \
     libcvhaartraining.a                             \
-    $(top_builddir)/otherlibs/highgui/libhighgui.la \
-    $(top_builddir)/cv/src/libcv.la                 \
-    $(top_builddir)/cxcore/src/libcxcore.la
+    $(top_builddir)/src/highgui/libhighgui.la       \
+    $(top_builddir)/src/cv/libcv.la                 \
+    $(top_builddir)/src/cxcore/libcxcore.la
 
 libcvhaartraining_a_SOURCES = \
     cvboost.cpp           \
@@ -31,11 +31,6 @@ noinst_HEADERS = cvclassifier.h _cvhaartraining.h _cvcommon.h
 
 EXTRA_DIST =
 
-INCLUDES =                                \
-    -I$(top_srcdir)/cxcore/include    \
-    -I$(top_srcdir)/cv/include        \
-    -I$(top_srcdir)/otherlibs/highgui \
-    -I$(srcdir)/../include            \
-    -I.
+INCLUDES = -I$(top_srcdir)/include/opencv -I.
 
 #CXX=@CXXOPENMP@
index aa87a209f78ae2e411adb203cb9e89ec636bdaaa..c771c63a65feaaa01d0d5bc5a8d3dae5d53fe2d3 100644 (file)
@@ -221,7 +221,7 @@ if test x"$sse2" = "xyes"; then
     *-*-*)
         ;;
     esac
-  fi  
+  fi
 fi
 
 
@@ -233,7 +233,7 @@ AC_LINK_IFELSE([
 AC_LANG_PROGRAM([[
 #include <omp.h>
 void f(int* a, int* b, int n) {
-  int i;  
+  int i;
   #pragma parallel for
   for(i = 0; i < n; i++)
      a[i] += b[i];
@@ -290,7 +290,7 @@ else
           # default to i686/pentiumpro -- people can override this
           DEFAULT_CXXFLAGS="-g $DEFAULT_CXXFLAGS"
         fi
-        ;;    
+        ;;
     powerpc-*-*)
         if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
             # default to G3 processors -- people can override this
@@ -991,7 +991,7 @@ EOF
           $SWIG -c++ -octave conftest.i || AC_MSG_ERROR(SWIG doesn't support Octave modules)
           AC_MSG_RESULT([yes])
           rm -f conftest.*
-    
+
         # specify the flags for swig
         AC_SUBST([SWIG_OCTAVE_OPT], "-octave")
 
@@ -1043,26 +1043,17 @@ AC_SUBST(DEBUG)
 AC_CONFIG_FILES([Makefile
 opencv.pc
 opencv.spec
-docs/Makefile
+doc/Makefile
 data/Makefile
-cxcore/Makefile
-cxcore/include/Makefile
-cxcore/src/Makefile
-cv/Makefile
-cv/include/Makefile
-cv/src/Makefile
-cvaux/Makefile
-cvaux/include/Makefile
-cvaux/src/Makefile
-ml/Makefile
-ml/include/Makefile
-ml/src/Makefile
-otherlibs/Makefile
-otherlibs/highgui/Makefile
+include/Makefile
+src/Makefile
+src/cxcore/Makefile
+src/cv/Makefile
+src/cvaux/Makefile
+src/ml/Makefile
+src/highgui/Makefile
 apps/Makefile
 apps/haartraining/Makefile
-apps/haartraining/include/Makefile
-apps/haartraining/src/Makefile
 interfaces/Makefile
 interfaces/swig/Makefile
 interfaces/swig/filtered/Makefile
index 5920c4c1728610329dff6d4aa2cb369cd7982e4e..9a0af37b4897b81fd64a67a0c03d2a3e1f6dd124 100644 (file)
@@ -2,15 +2,16 @@
 #  CMake file for OpenCV docs
 #
 
-set(OPENCV_DOC_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/share/opencv/doc)
+set(OPENCV_DOC_INSTALL_PATH "${CMAKE_INSTALL_PREFIX}/share/opencv/doc")
 
 file(GLOB FILES_DOC *.htm *.txt *.jpg *.png *.pdf)
 file(GLOB FILES_DOC_PAPERS papers/*.pdf papers/*.ps)
+file(GLOB FILES_DOC_VS vidsurv/*.doc)
 file(GLOB FILES_DOC_REF ref/*.htm ref/*.css)
 file(GLOB FILES_DOC_REF_PICS ref/pics/*.png ref/pics/*.jpg)
 
-install(FILES ${FILES_DOC} DESTINATION ${OPENCV_DOC_INSTALL_PATH})
-install(FILES ${CMAKE_SOURCE_DIR}/apps/haartraining/doc/haartraining.htm DESTINATION ${OPENCV_DOC_INSTALL_PATH})
-install(FILES ${FILES_DOC_PAPERS} DESTINATION ${OPENCV_DOC_INSTALL_PATH}/papers)
-install(FILES ${FILES_DOC_REF} DESTINATION ${OPENCV_DOC_INSTALL_PATH}/ref)
-install(FILES ${FILES_DOC_REF_PICS} DESTINATION ${OPENCV_DOC_INSTALL_PATH}/ref/pics)
+install(FILES ${FILES_DOC} DESTINATION "${OPENCV_DOC_INSTALL_PATH}")
+install(FILES ${FILES_DOC_PAPERS} DESTINATION "${OPENCV_DOC_INSTALL_PATH}/papers")
+install(FILES ${FILES_DOC_VS} DESTINATION "${OPENCV_DOC_INSTALL_PATH}/vidsurv")
+install(FILES ${FILES_DOC_REF} DESTINATION "${OPENCV_DOC_INSTALL_PATH}/ref")
+install(FILES ${FILES_DOC_REF_PICS} DESTINATION "${OPENCV_DOC_INSTALL_PATH}/ref/pics")
index 3f652b1a2dd78bf8135ad79d9cd20f48f4d83227..7eb04801f42e1678ca87e0e3e8a40079a781489e 100644 (file)
@@ -1,6 +1,6 @@
 opencvdocdir = $(pkgdatadir)/doc
-nobase_dist_opencvdoc_DATA = cvcam.rtf faq.htm index.htm \
-    license.txt opencv.jpg opencv-logo.png opencv-logo2.png opencvman_old.pdf \
+nobase_dist_opencvdoc_DATA = faq.htm index.htm \
+    license.txt opencv.jpg opencv-logo.png opencv-logo2.png \
     ../THANKS ../ChangeLog \
     papers/algo_tracking.pdf papers/avbpa99.ps papers/camshift.pdf \
     ref/opencvref.css ref/opencvref_cv.htm ref/opencvref_cvaux.htm \
@@ -17,4 +17,4 @@ nobase_dist_opencvdoc_DATA = cvcam.rtf faq.htm index.htm \
     ref/pics/minareabox.png  ref/pics/mlp_.png  ref/pics/neuron_model.png \
     ref/pics/pointpolygon.png  ref/pics/quadedge.png  ref/pics/right.jpg \
     ref/pics/sigmoid_bipolar.png  ref/pics/subdiv.png ref/pics/threshold.png \
-    python.txt python-wrappers-on-windows.txt
+    python.txt
index 73fd14a9ebc28fd1b8a1d38ef1282df2b9565a47..cfe8a9e8cf975b69e7446771afd9b1d1e5ce2745 100644 (file)
@@ -1,9 +1,4 @@
-CV_INCLUDES = \
-  -I$(top_srcdir)/cv/include         \
-  -I$(top_srcdir)/cxcore/include     \
-  -I$(top_srcdir)/ml/include         \
-  -I$(top_srcdir)/otherlibs/highgui     \
-  -I$(srcdir)
+CV_INCLUDES = -I$(top_srcdir)/include/opencv -I$(srcdir)
 
 AM_CPPFLAGS = \
   $(CV_INCLUDES)                     \
@@ -69,7 +64,7 @@ cv_wrap.cpp: cv.i imagedata.i cvarr.i octhelpers.i              \
 ml_wrap.cpp: ml.i octtypemaps.i                                 \
               $(top_srcdir)/interfaces/swig/general/typemaps.i  \
               $(top_srcdir)/interfaces/swig/general/memory.i    \
-              $(top_srcdir)/ml/include/ml.h                     \
+              $(top_srcdir)/include/opencv/ml.h                 \
               Makefile.in
        $(SWIG) $(SWIG_OCTAVE_OPT) $(CV_INCLUDES) -DSKIP_INCLUDES -o $@ $<
 
@@ -78,7 +73,7 @@ highgui_wrap.cpp: highgui.i octtypemaps.i adapters.i            \
               $(top_srcdir)/interfaces/swig/general/highgui.i   \
               $(top_srcdir)/interfaces/swig/general/typemaps.i  \
               $(top_srcdir)/interfaces/swig/general/memory.i    \
-              $(top_srcdir)/otherlibs/highgui/highgui.h         \
+              $(top_srcdir)/include/opencv/highgui.h            \
               Makefile.in
        $(SWIG) $(SWIG_OCTAVE_OPT) $(CV_INCLUDES) -DSKIP_INCLUDES -o $@ $<
 
@@ -112,11 +107,11 @@ opencv-1.1.0.tar.gz: $(PKG_OCT_FILES) $(PKG_OTHER_FILES)
 MY_MKOCTFILE=$(CXX) -O0 -g -shared $(OCTAVE_INCFLAGS)
 
 cv.oct: cv_wrap.cpp cvshadow.cpp octerror.cpp octhelpers.cpp
-       $(MY_MKOCTFILE) -o $@ $(AM_CPPFLAGS) -L$(top_builddir)/cv/src/.libs -lcv $^
+       $(MY_MKOCTFILE) -o $@ $(AM_CPPFLAGS) -L$(top_builddir)/src/cv/.libs -lcv $^
 ml.oct: ml_wrap.cpp octhelpers.cpp
-       $(MY_MKOCTFILE) -o $@ $(AM_CPPFLAGS) -L$(top_builddir)/ml/src/.libs -lml $^
+       $(MY_MKOCTFILE) -o $@ $(AM_CPPFLAGS) -L$(top_builddir)/src/ml/.libs -lml $^
 highgui.oct: highgui_wrap.cpp octhelpers.cpp
-       $(MY_MKOCTFILE) -o $@ $(AM_CPPFLAGS) -L$(top_builddir)/otherlibs/highgui/.libs -lhighgui $^
+       $(MY_MKOCTFILE) -o $@ $(AM_CPPFLAGS) -L$(top_builddir)/src/highgui/.libs -lhighgui $^
 
 endif
 
index 3682092023db7af8491bc080f61b840c10bfac73..192e73996d2480dd1d9114343ec48f0b7503d7ca 100644 (file)
@@ -23,10 +23,10 @@ set_source_files_properties(cv.i PROPERTIES
     )
 
 set(opencv_headers
-    ${CMAKE_SOURCE_DIR}/cxcore/include/cxtypes.h
-    ${CMAKE_SOURCE_DIR}/cxcore/include/cxcore.h
-    ${CMAKE_SOURCE_DIR}/cv/include/cvtypes.h
-    ${CMAKE_SOURCE_DIR}/cv/include/cv.h
+    ${CMAKE_SOURCE_DIR}/include/opencv/cxtypes.h
+    ${CMAKE_SOURCE_DIR}/include/opencv/cxcore.h
+    ${CMAKE_SOURCE_DIR}/include/opencv/cvtypes.h
+    ${CMAKE_SOURCE_DIR}/include/opencv/cv.h
     )
 
 add_custom_command(
@@ -58,7 +58,7 @@ set_source_files_properties(ml.i PROPERTIES
 set(SWIG_MODULE_ml_EXTRA_DEPS
     nointpb.i pytypemaps.i
     ../general/memory.i ../general/typemaps.i
-    ${CMAKE_SOURCE_DIR}/ml/include/ml.h
+    ${CMAKE_SOURCE_DIR}/include/opencv/ml.h
     )
 
 SWIG_ADD_MODULE(ml python ml.i pyhelpers.cpp pyhelpers.h)
@@ -76,7 +76,7 @@ set(SWIG_MODULE_highgui_EXTRA_DEPS
     nointpb.i pytypemaps.i
     ../general/highgui.i
     ../general/memory.i ../general/typemaps.i
-    ${CMAKE_SOURCE_DIR}/otherlibs/highgui/highgui.h
+    ${CMAKE_SOURCE_DIR}/include/opencv/highgui.h
     )
 
 SWIG_ADD_MODULE(highgui python highgui.i pyhelpers.cpp pyhelpers.h)
index 63a0ab7c3d0124a3a091b5f8f31c50ec500bf1f4..a7a5de4415ae0d37ecb2f5db4906c3536822f330 100644 (file)
@@ -4,11 +4,7 @@
 # depending on the Automake conditionals set by configure, we will build the various
 # script language interfaces that SWIG is capable of generating wrappers for
 
-CV_INCLUDES = \
-  -I$(top_srcdir)/cv/include         \
-  -I$(top_srcdir)/cxcore/include     \
-  -I$(top_srcdir)/ml/include         \
-  -I$(top_srcdir)/otherlibs/highgui
+CV_INCLUDES = -I$(top_srcdir)/include/opencv -I$(srcdir)
 
 AM_CPPFLAGS = \
   $(CV_INCLUDES)                     \
@@ -77,7 +73,7 @@ _cv.cpp: cv.i imagedata.i cvarr.i cvaliases.i pyhelpers.i       \
 _ml.cpp: ml.i nointpb.i pytypemaps.i                            \
               $(top_srcdir)/interfaces/swig/general/typemaps.i  \
               $(top_srcdir)/interfaces/swig/general/memory.i    \
-              $(top_srcdir)/ml/include/ml.h                     \
+              $(top_srcdir)/include/opencv/ml.h                 \
               Makefile.in
        $(SWIG) $(SWIG_PYTHON_OPT) $(CV_INCLUDES) -DSKIP_INCLUDES -o $@ $<
 
@@ -86,15 +82,15 @@ _highgui.cpp: highgui.i nointpb.i pytypemaps.i                  \
               $(top_srcdir)/interfaces/swig/general/highgui.i   \
               $(top_srcdir)/interfaces/swig/general/typemaps.i  \
               $(top_srcdir)/interfaces/swig/general/memory.i    \
-              $(top_srcdir)/otherlibs/highgui/highgui.h         \
+              $(top_srcdir)/include/opencv/highgui.h            \
               Makefile.in
        $(SWIG) $(SWIG_PYTHON_OPT) $(CV_INCLUDES) -DSKIP_INCLUDES -o $@ $<
 
 CV_HEADER_FILES = \
-  $(top_srcdir)/cxcore/include/cxtypes.h \
-  $(top_srcdir)/cxcore/include/cxcore.h  \
-  $(top_srcdir)/cv/include/cvtypes.h \
-  $(top_srcdir)/cv/include/cv.h
+  $(top_srcdir)/include/opencv/cxtypes.h \
+  $(top_srcdir)/include/opencv/cxcore.h  \
+  $(top_srcdir)/include/opencv/cvtypes.h \
+  $(top_srcdir)/include/opencv/cv.h
 
 cvaliases.i: $(CV_HEADER_FILES) Makefile.in
        $(PYTHON) $(top_srcdir)/utils/extract_aliases.py $(CV_HEADER_FILES) > $@
@@ -121,20 +117,20 @@ _cv_la_SOURCES    = _cv.cpp error.cpp error.h pyhelpers.cpp pyhelpers.h \
                     pycvseq.hpp cvshadow.cpp cvshadow.h \
                     cv.i imagedata.i cvarr.i nointpb.i pytypemaps.i cvseq.i cvshadow.i
 _cv_la_CXXFLAGS   = $(PYTHON_CSPEC)
-_cv_la_LIBADD     = $(top_builddir)/cv/src/libcv.la
+_cv_la_LIBADD     = $(top_builddir)/src/cv/libcv.la
 _cv_la_LDFLAGS    = -module -avoid-version -no-undefined $(PYTHON_LSPEC) \
                     -L$(SWIG_PYTHON_LIBS)
 
 _ml_la_SOURCES    = _ml.cpp pyhelpers.cpp pyhelpers.h
 _ml_la_CXXFLAGS   = $(PYTHON_CSPEC)
-_ml_la_LIBADD     = $(top_builddir)/ml/src/libml.la
+_ml_la_LIBADD     = $(top_builddir)/src/ml/libml.la
 _ml_la_LDFLAGS    = -module -avoid-version -no-undefined $(PYTHON_LSPEC) \
                     -L$(SWIG_PYTHON_LIBS)
 
 _highgui_la_SOURCES    = _highgui.cpp pyhelpers.cpp pyhelpers.h \
                          highgui.i
 _highgui_la_CXXFLAGS     = $(PYTHON_CSPEC)
-_highgui_la_LIBADD       = $(top_builddir)/otherlibs/highgui/libhighgui.la
+_highgui_la_LIBADD       = $(top_builddir)/src/highgui/libhighgui.la
 _highgui_la_LDFLAGS      = -module -avoid-version -no-undefined $(PYTHON_LSPEC) \
                            -L$(SWIG_PYTHON_LIBS)
 
index a59f9098e31eb4cf462469df5d3cbfe0e0b93243..8950b9aa3235c3cf96e594427cb227a3e480373c 100644 (file)
@@ -1 +1,5 @@
-add_subdirectory(haartraining)
\ No newline at end of file
+add_subdirectory(cxcore)
+add_subdirectory(cv)
+add_subdirectory(cvaux)
+add_subdirectory(ml)
+add_subdirectory(highgui)
index b9fd3b510bf226452c34f8f557bae21e1cf51c76..3920ed350f53b61ed221d686b1f013baf7379517 100644 (file)
@@ -1,13 +1,19 @@
 # ----------------------------------------------------------------------------
-#  CMake file for cv. See root CMakeLists.txt 
+#  CMake file for cv. See root CMakeLists.txt
 # ----------------------------------------------------------------------------
 project(cv)
 
-file(GLOB lib_srcs "src/*.cpp")
+file(GLOB lib_srcs "*.cpp")
 source_group("Src" FILES ${lib_srcs})
-file(GLOB lib_hdrs "include/*.h*")
+
+set(lib_hdr_names cv.h cv.hpp cvcompat.h cvtypes.h)
+set(lib_hdrs)
+foreach(h ${lib_hdr_names})
+    list(APPEND lib_hdrs "${CMAKE_SOURCE_DIR}/include/opencv/${h}")
+endforeach()
 source_group("Include\\External" FILES ${lib_hdrs})
-file(GLOB lib_int_hdrs "src/*.h*")
+
+file(GLOB lib_int_hdrs "*.h*")
 source_group("Include\\Internal" FILES ${lib_int_hdrs})
 
 if(WIN32 AND MSVC)
@@ -28,7 +34,7 @@ if(WIN32 AND MSVC)
                 PROPERTIES
                 COMPILE_FLAGS "/Yu${pch_header}"
                 )
-        endif()        
+        endif()
     endforeach()
     list(REMOVE_ITEM lib_srcs ${dummy})
 endif()
index 59b55ce613eee44cbaa3c0f10f981b17f7b3a524..b99598e8eef7c51c3b5b6ae2faa14a05a5fc6a5b 100644 (file)
@@ -1,7 +1,7 @@
 # use the default c++ flags
 AM_CXXFLAGS=@DEF_CXXFLAGS@
 
-INCLUDES = -I. -I$(top_srcdir)/cv/include -I$(top_srcdir)/cxcore/include -I$(top_srcdir)
+INCLUDES = -I. -I$(top_srcdir)/include/opencv -I$(top_srcdir)
 
 noinst_HEADERS     = _cv.h _cvgeom.h _cvimgproc.h _cvipp.h _cvlist.h _cvmatrix.h \
     _cvkdtree.hpp
@@ -31,5 +31,5 @@ lib_cv_la_LDFLAGS = -no-undefined @LDFLAGS@
 libcv_la_SOURCES = dummy.cpp
 libcv_la_LDFLAGS = -no-undefined -version-info @LT_VERSION@ @LDFLAGS@
 libcv_la_LIBADD = lib_cv.la \
-    $(top_builddir)/cxcore/src/libcxcore.la \
+    $(top_builddir)/src/cxcore/libcxcore.la \
     @LTLIBOBJS@
index 97c9cbf6309f255f14ed6c0c7846acf14662d285..de1d38b31eae7090dfb6c7471764b24ac85cccd5 100644 (file)
@@ -1,30 +1,28 @@
 # ----------------------------------------------------------------------------
-#  CMake file for cvaux. See root CMakeLists.txt 
+#  CMake file for cvaux. See root CMakeLists.txt
 #
 # ----------------------------------------------------------------------------
 project(cvaux)
 
-# List of C++ files:
-set(lib_srcs "")
-set(lib_hdrs "")
-
-# The source files:
-file(GLOB aux_srcs src/*.cpp)
-file(GLOB aux_srcs_vs src/vs/*.cpp)
-set(lib_srcs ${lib_srcs} ${aux_srcs} ${aux_srcs_vs})
+file(GLOB aux_srcs *.cpp)
+file(GLOB aux_srcs_vs vs/*.cpp)
+set(lib_srcs ${aux_srcs_vs} ${aux_srcs})
 source_group(Src FILES ${aux_srcs})
 source_group(Src\\VideoSurveillance FILES ${aux_srcs_vs})
 
-# The corresponding .h files:
-file(GLOB_RECURSE aux_hdrs_ext include/*.h*)
-file(GLOB_RECURSE aux_hdrs_int src/*.h*)
+set(aux_hdr_names cvaux.h cvmat.hpp cvvidsurv.hpp)
+set(aux_hdrs_ext)
+foreach(h ${aux_hdr_names})
+    list(APPEND aux_hdrs_ext "${CMAKE_SOURCE_DIR}/include/opencv/${h}")
+endforeach()
+
+file(GLOB_RECURSE aux_hdrs_int *.h*)
 set(lib_hdrs ${lib_hdrs} ${aux_hdrs_ext} ${aux_hdrs_int})
 
 source_group("Include\\External" FILES ${aux_hdrs_ext})
 source_group("Include\\Internal" FILES ${aux_hdrs_int})
 
-include_directories("${OPENCV_SOURCE_DIR}/cv/src")
-include_directories(src)
+include_directories("${CMAKE_SOURCE_DIR}/src/cv" ".")
 
 if(WIN32 AND MSVC)
     set(pch_header "_cvaux.h")
@@ -44,7 +42,7 @@ if(WIN32 AND MSVC)
                 PROPERTIES
                 COMPILE_FLAGS "/Yu${pch_header}"
                 )
-        endif()        
+        endif()
     endforeach()
     list(REMOVE_ITEM lib_srcs ${dummy})
 endif()
index 29b8e5b0318d571fd139d3d53958de5207438b63..ff3fd4320e96de990f3d93292bb26f5cf7882461 100644 (file)
@@ -1,7 +1,7 @@
 # use the default c++ flags
 AM_CXXFLAGS=@DEF_CXXFLAGS@
 
-INCLUDES = -I. -I$(top_srcdir)/cvaux/include -I$(top_srcdir)/cxcore/include -I$(top_srcdir)/cv/include -I$(top_srcdir)/cv/src -I$(top_srcdir)
+INCLUDES = -I. -I$(top_srcdir)/include/opencv -I../cv -I$(top_srcdir)
 
 noinst_HEADERS     = _cvaux.h _cvfacedetection.h _cvvectrack.h _cvvm.h
 noinst_LTLIBRARIES = lib_cvaux.la
@@ -50,6 +50,6 @@ libcvaux_la_SOURCES = dummy.cpp
 libcvaux_la_LDFLAGS = -no-undefined -version-info @LT_VERSION@ @LDFLAGS@
 libcvaux_la_LIBADD  = \
     lib_cvaux.la \
-    $(top_builddir)/cxcore/src/libcxcore.la \
-    $(top_builddir)/cv/src/libcv.la         \
+    $(top_builddir)/src/cxcore/libcxcore.la \
+    $(top_builddir)/src/cv/libcv.la         \
     @LTLIBOBJS@
index ce46efd070a276ffb4d1cc1bf873621ef6abab32..f84eb0d111bc712ce9cd0f239ada714b9f8b4d06 100644 (file)
@@ -1,13 +1,19 @@
 # ----------------------------------------------------------------------------
-#  CMake file for cxcore. See root CMakeLists.txt 
+#  CMake file for cxcore. See root CMakeLists.txt
 # ----------------------------------------------------------------------------
 project(cxcore)
 
-file(GLOB lib_srcs "src/*.cpp")
+file(GLOB lib_srcs "*.cpp")
 source_group("Src" FILES ${lib_srcs})
-file(GLOB lib_hdrs "include/*.h*")
+
+set(lib_hdr_names cxcore.h cxcore.hpp cxerror.h cxmisc.h cxtypes.h cvver.h cvwimage.h)
+set(lib_hdrs)
+foreach(h ${lib_hdr_names})
+    list(APPEND lib_hdrs "${CMAKE_SOURCE_DIR}/include/opencv/${h}")
+endforeach()
 source_group("Include\\External" FILES ${lib_hdrs})
-file(GLOB lib_int_hdrs "src/*.h*")
+
+file(GLOB lib_int_hdrs "*.h*")
 source_group("Include\\Internal" FILES ${lib_int_hdrs})
 
 if(WIN32 AND MSVC)
@@ -61,7 +67,7 @@ install(TARGETS ${the_target}
        ARCHIVE DESTINATION lib
     )
 
+# install each module headers separately
 if(UNIX)
     install(FILES ${lib_hdrs} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/opencv")
 endif()
-    
index c5d00382df7bdc8955d52db9d2f20d7556218890..c960a57f4c1ce7fac484fa1a6f13a6a310689f12 100644 (file)
@@ -1,7 +1,7 @@
 # use the default c++ flags
 AM_CXXFLAGS=@DEF_CXXFLAGS@
 
-INCLUDES = -I. -I$(top_srcdir)/cxcore/include -I$(top_srcdir)
+INCLUDES = -I. -I$(top_srcdir)/include/opencv -I$(top_srcdir)
 
 noinst_HEADERS     = _cxcore.h _cxipp.h
 noinst_LTLIBRARIES = lib_cxcore.la
index a732369b8b4c676b76c9e98a7e5f3d8f5378abae..8a7283471aeaa418c1265f755c57fe1f5f90d5db 100644 (file)
@@ -1,31 +1,21 @@
 # ----------------------------------------------------------------------------
-#  CMake file for highgui. See root CMakeLists.txt 
+#  CMake file for highgui. See root CMakeLists.txt
 #   Some parts taken from version of Hartmut Seichter, HIT Lab NZ.
 #   Jose Luis Blanco, 2008
 # ----------------------------------------------------------------------------
 project(highgui)
 
-# List of C++ files:
-
-include_directories(
-    ${CMAKE_CURRENT_SOURCE_DIR} 
-    ${CMAKE_SOURCE_DIR}/cxcore/include 
-    ${CMAKE_SOURCE_DIR}/cv/include
-    )
-
 if(MSVC)
-    include_directories(
-        ${CMAKE_SOURCE_DIR}/otherlibs/_graphics/include
-    )
-endif()    
+    include_directories("${CMAKE_SOURCE_DIR}/3rdparty/include")
+endif()
 
-file(GLOB grfmt_hdrs grfmt*.h)    
+file(GLOB grfmt_hdrs grfmt*.h)
 file(GLOB grfmt_srcs grfmt*.cpp)
 set(grfmt_hdrs bitstrm.h ${grfmt_hdrs})
 set(grfmt_srcs bitstrm.cpp ${grfmt_srcs})
-    
+
 source_group("Src\\grfmts" FILES ${grfmt_hdrs} ${grfmt_srcs})
-               
+
 set(highgui_srcs
     cvcap.cpp
     cvcap_images.cpp
@@ -37,8 +27,8 @@ set(highgui_srcs
     )
 
 set(highgui_hdrs _highgui.h utils.h)
-set(highgui_ext_hdrs highgui.h)
-    
+set(highgui_ext_hdrs ${CMAKE_SOURCE_DIR}/include/opencv/highgui.h)
+
 if(WIN32)
     set(highgui_srcs ${highgui_srcs} window_w32.cpp cvcap_vfw.cpp cvcap_cmu.cpp cvcap_w32.cpp cvcap_dshow.cpp)
     if(MSVC)
@@ -47,11 +37,11 @@ if(WIN32)
     if(HAVE_MIL)
         set(highgui_srcs ${highgui_srcs} cvcap_mil.cpp)
     endif()
-endif()    
+endif()
 
 if(UNIX)
     if(HAVE_GTK)
-        set(highgui_srcs ${highgui_srcs} window_gtk.cpp)       
+        set(highgui_srcs ${highgui_srcs} window_gtk.cpp)
     endif()
 
     if(HAVE_XINE)
@@ -95,7 +85,15 @@ if(UNIX)
             add_definitions(-DHAVE_JASPER)
             include_directories(${JASPER_INCLUDE_DIR})
         endif()
-    endif()        
+    endif()
+
+    foreach(P ${HIGHGUI_INCLUDE_DIRS})
+        include_directories(${P})
+    endforeach()
+
+    foreach(P ${HIGHGUI_LIBRARY_DIRS})
+        link_directories(${P})
+    endforeach()
 endif()
 
 if(APPLE)
@@ -107,10 +105,11 @@ source_group("Src" FILES ${highgui_srcs} ${highgui_hdrs})
 source_group("Include" FILES ${highgui_ext_hdrs})
 
 if(MSVC)
-    link_directories("${CMAKE_SOURCE_DIR}/otherlibs/_graphics/lib")
-    link_directories("${CMAKE_BINARY_DIR}/otherlibs/_graphics/lib")    
-    link_directories("${CMAKE_BINARY_DIR}/otherlibs/_graphics/lib/${ConfigurationName}")
-endif()    
+    link_directories("${CMAKE_SOURCE_DIR}/3rdparty/lib"
+        "${CMAKE_BINARY_DIR}/3rdparty/lib"
+        "${CMAKE_BINARY_DIR}/3rdparty/lib/${ConfigurationName}"
+        )
+endif()
 
 set(lib_srcs ${highgui_srcs} ${grfmt_srcs})
 
@@ -130,21 +129,11 @@ if(WIN32 AND MSVC)
                 PROPERTIES
                 COMPILE_FLAGS "/Yu${pch_header}"
                 )
-        endif()        
+        endif()
     endforeach()
     set(lib_srcs ${lib_srcs} precomp.cpp)
 endif()
 
-if(UNIX)
-    foreach(P ${HIGHGUI_INCLUDE_DIRS})
-        include_directories(${P})
-    endforeach()
-
-    foreach(P ${HIGHGUI_LIBRARY_DIRS})
-        link_directories(${P})
-    endforeach()
-endif()
-
 # ----------------------------------------------------------------------------------
 #                              Define the library target:
 # ----------------------------------------------------------------------------------
@@ -166,7 +155,7 @@ set_target_properties(${the_target} PROPERTIES
        DEBUG_POSTFIX "d"
        ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib/"
        RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/"
-       DEFINE_SYMBOL "CVAPI_EXPORTS"   
+       DEFINE_SYMBOL "CVAPI_EXPORTS"
        LINK_INTERFACE_LIBRARIES ""
        )
 
@@ -187,7 +176,7 @@ if(WIN32)
        if (MSVC)
                target_link_libraries(${the_target} vfw32)
        endif()
-       
+
        if(MINGW)
                target_link_libraries(${the_target} vfw32 winmm)
        endif()
@@ -204,5 +193,5 @@ install(TARGETS ${the_target}
     )
 
 if(UNIX)
-    install(FILES highgui.h DESTINATION "${CMAKE_INSTALL_PREFIX}/include/opencv")
+    install(FILES ${highgui_ext_hdrs} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/opencv")
 endif()
index 662c72f84e2c9ed1558ae4ae31415c151b7ea713..a1e48e35483c406e4ae1eea14bcc330d69ab858d 100644 (file)
@@ -9,8 +9,8 @@ EXTRA_DIST = \
     window_carbon.cpp window_gtk.cpp window_w32.cpp              \
     grfmt_imageio.cpp
 
-INCLUDES = -I. -I$(top_srcdir)/cxcore/include \
-    -I$(top_srcdir)/cv/include @GTHREAD_CFLAGS@ @GTK_CFLAGS@ \
+INCLUDES = -I. -I$(top_srcdir)/include/opencv \
+    @GTHREAD_CFLAGS@ @GTK_CFLAGS@ \
     @GSTREAMER_CFLAGS@ @QUICKTIME_CFLAGS@ @CARBON_CFLAGS@    \
     @UNICAP_PACKAGE_CFLAGS@ @UCIL_PACKAGE_CFLAGS@
 
@@ -101,8 +101,8 @@ libhighgui_la_SOURCES = dummy.cpp
 libhighgui_la_LDFLAGS = -no-undefined -version-info @LT_VERSION@ @LDFLAGS@
 libhighgui_la_LIBADD  = \
     lib_highgui.la \
-    $(top_builddir)/cxcore/src/libcxcore.la \
-    $(top_builddir)/cv/src/libcv.la         \
+    $(top_builddir)/src/cxcore/libcxcore.la \
+    $(top_builddir)/src/cv/libcv.la         \
     @GTHREAD_LIBS@ @GTK_LIBS@ @GSTREAMER_LIBS@ @IMAGELIBS@ @FFMPEGLIBS@   \
     @IEEE1394LIBS@ @QUICKTIME_LIBS@ @CARBON_LIBS@ @XINE_LIBS@ @LTLIBOBJS@ \
     @UNICAP_PACKAGE_LIBS@ @UCIL_PACKAGE_LIBS@
index fbe8a4d280202b217c48ca8f552bbb20420599a2..e11e4040bec7443ae8525136a4a314e4f1c233e1 100644 (file)
@@ -1,17 +1,16 @@
 # ----------------------------------------------------------------------------
-#  CMake file for ml. See root CMakeLists.txt 
+#  CMake file for ml. See root CMakeLists.txt
 # ----------------------------------------------------------------------------
 project(ml)
 
-file(GLOB lib_srcs "src/*.cpp")
+file(GLOB lib_srcs "*.cpp")
 source_group("Src" FILES ${lib_srcs})
-file(GLOB lib_hdrs "include/*.h*")
+set(lib_hdrs ${CMAKE_SOURCE_DIR}/include/opencv/ml.h)
 source_group("Include\\External" FILES ${lib_hdrs})
-file(GLOB lib_int_hdrs "src/*.h*")
+file(GLOB lib_int_hdrs "*.h*")
 source_group("Include\\Internal" FILES ${lib_int_hdrs})
 
 if(WIN32 AND MSVC)
-    list(REMOVE_ITEM lib_srcs "src/dummy.cpp")
     set(pch_header "_ml.h")
     set(pch_src "ml.cpp")
     foreach(src_file ${lib_srcs})
@@ -29,7 +28,7 @@ if(WIN32 AND MSVC)
                 PROPERTIES
                 COMPILE_FLAGS "/Yu${pch_header}"
                 )
-        endif()        
+        endif()
     endforeach()
     list(REMOVE_ITEM lib_srcs ${dummy})
 endif()
index 1e81bb9d87c2894c735704b04df673722eb01b00..cf2987e96f91dd093c5ca6df0082d11a56a9b33c 100644 (file)
@@ -1,7 +1,7 @@
 # use the default c++ flags
 AM_CXXFLAGS=@DEF_CXXFLAGS@
 
-INCLUDES = -I. -I$(top_srcdir)/ml/include -I$(top_srcdir)/cxcore/include -I$(top_srcdir)
+INCLUDES = -I. -I$(top_srcdir)/include/opencv -I$(top_srcdir)
 
 noinst_HEADERS     = _ml.h
 noinst_LTLIBRARIES = lib_ml.la
@@ -11,12 +11,12 @@ lib_LTLIBRARIES    = libml.la
 lib_ml_la_SOURCES = \
     ml.cpp mlann_mlp.cpp mlboost.cpp mlcnn.cpp mlem.cpp \
     mlestimate.cpp mlknearest.cpp mlnbayes.cpp mlrtrees.cpp \
-    mlsvm.cpp mltestset.cpp mltree.cpp ml_inner_functions.cpp   
+    mlsvm.cpp mltestset.cpp mltree.cpp ml_inner_functions.cpp
 lib_ml_la_LDFLAGS = -no-undefined @LDFLAGS@
 
 # real library
 libml_la_SOURCES = dummy.cpp
 libml_la_LDFLAGS = -no-undefined -version-info @LT_VERSION@ @LDFLAGS@
 libml_la_LIBADD = lib_ml.la \
-    $(top_builddir)/cxcore/src/libcxcore.la \
+    $(top_builddir)/src/cxcore/libcxcore.la \
     @LTLIBOBJS@
index e38c52c59c02e72d4344a3675b2434fe4c403475..97d287110bc429ec0740773e86cc896d7a91459d 100644 (file)
@@ -4,10 +4,7 @@ AM_CXXFLAGS=@DEF_CXXFLAGS@
 INCLUDES =                            \
     -I.                               \
     -I$(top_srcdir)/tests/cxts        \
-    -I$(top_srcdir)/otherlibs/highgui \
-    -I$(top_srcdir)/cxcore/include    \
-    -I$(top_srcdir)/cv/include        \
-    -I$(top_srcdir)/cvaux/include
+    -I$(top_srcdir)/include/opencv
 
 check_PROGRAMS   = cvtest
 TESTS            = $(check_PROGRAMS)
@@ -31,10 +28,10 @@ cvtest_SOURCES = \
     aoptflowlk.cpp           aoptflowpyrlk.cpp        aposit.cpp \
     apyrsegmentation.cpp     asnakes.cpp              asubdivisions.cpp \
     akdtree.cpp \
-    atemplmatch.cpp          athresh.cpp      cvtest.cpp    tsysa.cpp                
+    atemplmatch.cpp          athresh.cpp      cvtest.cpp    tsysa.cpp
 cvtest_LDADD =                                           \
     $(top_builddir)/tests/cxts/libcxts.la            \
-    $(top_builddir)/cxcore/src/libcxcore.la          \
-    $(top_builddir)/cv/src/libcv.la                  \
-    $(top_builddir)/cvaux/src/libcvaux.la            \
-    $(top_builddir)/otherlibs/highgui/libhighgui.la
+    $(top_builddir)/src/cxcore/libcxcore.la          \
+    $(top_builddir)/src/cv/libcv.la                  \
+    $(top_builddir)/src/cvaux/libcvaux.la            \
+    $(top_builddir)/src/highgui/libhighgui.la
index 45361563e29c776d1828a6d754a7a5d9a03a14dc..34e45ee78339b945998bab7899a4b9463d769e3a 100644 (file)
@@ -3,14 +3,14 @@ AM_CXXFLAGS=@DEF_CXXFLAGS@
 
 EXTRA_DIST = precomp.cpp cxcoretest.dsp cxcoretest.vs2005.vcproj
 
-INCLUDES =                             \
-       -I$(top_srcdir)/cxcore/include \
+INCLUDES =                         \
+       -I$(top_srcdir)/include/opencv \
        -I$(top_srcdir)/tests/cxts
 
 check_PROGRAMS = cxcoretest
 TESTS          = $(check_PROGRAMS)
 
-cxcoretest_SOURCES =        \
+cxcoretest_SOURCES =    \
        cxcoretest.h        \
        aarithm.cpp         \
        adatastruct.cpp     \
@@ -20,4 +20,4 @@ cxcoretest_SOURCES =        \
        cxcoretest_main.cpp
 cxcoretest_LDADD = \
        $(top_builddir)/tests/cxts/libcxts.la \
-       $(top_builddir)/cxcore/src/libcxcore.la
+       $(top_builddir)/src/cxcore/libcxcore.la
index d0a7b9105ce2b64a64cc09bdf82a685ec33fa5bb..0d106a6ea7b1a73072e761455677979dc52b2494 100644 (file)
@@ -3,10 +3,10 @@ AM_CXXFLAGS=@DEF_CXXFLAGS@
 
 EXTRA_DIST = cxts.dsp cxts.vs2005.vcproj precomp.cpp
 
-INCLUDES = -I. -I$(top_srcdir)/cxcore/include -I$(top_srcdir)/tests
+INCLUDES = -I. -I$(top_srcdir)/include/opencv -I$(top_srcdir)/tests
 AM_CFLAGS = @CFLAGS@ @DEBUG@
 
 check_LTLIBRARIES = libcxts.la
 
 libcxts_la_SOURCES = _cxts.h cxts.h cxts.cpp cxts_arrtest.cpp cxts_math.cpp
-libcxts_la_LIBADD  = $(top_builddir)/cxcore/src/libcxcore.la
+libcxts_la_LIBADD  = $(top_builddir)/src/cxcore/libcxcore.la
index f0a663dd718b04f2990e7ba670535539fa3d6cdd..fee59e9731cde1a449b5ff0fedbb6ea1e2e4f8cb 100644 (file)
@@ -2,7 +2,7 @@
 # 2008-04-19, xavier.delacour@gmail.com
 
 
-EXTRA_DIST = 
+EXTRA_DIST =
 
 MOSTLYCLEANFILES = *.works
 
@@ -15,8 +15,8 @@ noinst_OCTAVE = \
 TESTS_ENVIRONMENT = \
     top_srcdir=$(top_srcdir) \
     top_builddir=$(top_builddir) \
-    LD_LIBRARY_PATH=$(top_builddir)/cxcore/src/.libs:$(top_builddir)/cv/src/.libs:$(top_builddir)/otherlibs/highgui/.libs:$(LD_LIBRARY_PATH) \
-    DYLD_LIBRARY_PATH=$(top_builddir)/cxcore/src/.libs:$(top_builddir)/cv/src/.libs:$(top_builddir)/otherlibs/highgui/.libs:$(LD_LIBRARY_PATH) \
+    LD_LIBRARY_PATH=$(top_builddir)/src/cxcore/.libs:$(top_builddir)/src/cv/.libs:$(top_builddir)/src/highgui/.libs:$(LD_LIBRARY_PATH) \
+    DYLD_LIBRARY_PATH=$(top_builddir)/src/cxcore/.libs:$(top_builddir)/src/cv/.libs:$(top_builddir)/src/highgui/.libs:$(LD_LIBRARY_PATH) \
     OCTAVEPATH=$(top_builddir)/interfaces/swig/octave
 
 # do tests only if we ask for octave
index 3734fba427c2e24ab6d613c22b604534c186e11b..20e4f042aa3ccd5803456c7a38242034834b6eec 100644 (file)
@@ -98,8 +98,8 @@ noinst_PYTHON = \
 TESTS_ENVIRONMENT = \
     top_srcdir=$(top_srcdir) \
     top_builddir=$(top_builddir) \
-    LD_LIBRARY_PATH=$(top_builddir)/cxcore/src/.libs:$(top_builddir)/cv/src/.libs:$(top_builddir)/otherlibs/highgui/.libs:$(LD_LIBRARY_PATH) \
-    DYLD_LIBRARY_PATH=$(top_builddir)/cxcore/src/.libs:$(top_builddir)/cv/src/.libs:$(top_builddir)/otherlibs/highgui/.libs:$(LD_LIBRARY_PATH) \
+    LD_LIBRARY_PATH=$(top_builddir)/src/cxcore/.libs:$(top_builddir)/src/cv/.libs:$(top_builddir)/src/highgui/.libs:$(LD_LIBRARY_PATH) \
+    DYLD_LIBRARY_PATH=$(top_builddir)/src/cxcore/.libs:$(top_builddir)/src/cv/.libs:$(top_builddir)/src/highgui/.libs:$(LD_LIBRARY_PATH) \
     PYTHONPATH=$(top_srcdir)/interfaces/swig:$(top_builddir)/interfaces/swig/python/.libs
 
 # do tests only if we ask for python
index 058de1a62b60343854d895af8fa301c22112c4b4..6a88c586803a041923f5ee8a262c0aa6e339ef35 100644 (file)
@@ -1,22 +1,10 @@
 
-EXTRA_DIST = \
-    opencv.iss            \
-    cvinfo/cvinfo.cpp     \
-    cvinfo/cvinfo.dsp     \
-    cvinfo/cvinfo.vs2005.vcproj
+EXTRA_DIST = opencv.iss opencv.ico splash.bmp
 
 noinst_PYTHON = \
     check_doc.py               \
-    cvt_xml2xml.py             \
-    dos2unix.py                \
     extract_aliases.py         \
     extract_constants.py       \
     extract_doublepointers.py  \
     extract_macros.py          \
-    gen_make.py                \
-    make_index.py              \
-    search_leaks.py            \
-    unix2dos.py
-
-dist_noinst_SCRIPTS = \
-    maintainer_clean.cmd
+    make_index.py