Enable out-of-source builds for CMake, by addinge some include paths to the cmake include directories. -- Thomas Weber <thomas.weber.mail@gmail.com> Tue, 22 Apr 2008 09:03:38 +0200 This patch was forwarded upstream. -- Thomas Weber <thomas.weber.mail@gmail.com> Sun, 04 Oct 2009 15:13:35 +0200 --- a/easy_plot/src/CMakeLists.txt +++ b/easy_plot/src/CMakeLists.txt @@ -7,6 +7,7 @@ include(UseQt4) +INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR} ) include_directories(${QT_INCLUDE_DIR}) include_directories(${QT_QT_INCLUDE_DIR}) include_directories(${QT_QTCORE_INCLUDE_DIR}) @@ -45,4 +46,4 @@ TARGETS easy_plot RUNTIME DESTINATION bin - ) \ No newline at end of file + ) --- a/qtoctave/src/CMakeLists.txt +++ b/qtoctave/src/CMakeLists.txt @@ -6,6 +6,8 @@ include(UseQt4) +INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR} ) +INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR}/projects ) include_directories(${QT_INCLUDE_DIR}) include_directories(${QT_QT_INCLUDE_DIR}) include_directories(${QT_QTCORE_INCLUDE_DIR}) --- a/qtoctave/src/configure.h +++ /dev/null @@ -1,11 +0,0 @@ - -#ifndef __CONFIGURE_H__ -#define __CONFIGURE_H__ -#define CONFIG_PATH "/usr/local/opt/binaries/qtoctave-0.8.1/share/qtoctave" -#define HELP_PATH "/usr/local/opt/binaries/qtoctave-0.8.1/share/qtoctave/octave_doc/index.html" -#define ICON_PATH "/usr/local/opt/binaries/qtoctave-0.8.1/share/qtoctave/images" -#define LANG_PATH "/usr/local/opt/binaries/qtoctave-0.8.1/share/qtoctave/lang" -#define QTOCTAVE_HELP_PATH "/usr/local/opt/binaries/qtoctave-0.8.1/share/qtoctave/qtoctave_doc/index.html" - -#define PKG_CMD_PATH "/usr/local/opt/binaries/qtoctave-0.8.1/share/qtoctave/pkg-commands.list" -#endif