From 5ac78becbee0414a4f4f166bf272aae2f6325ca4 Mon Sep 17 00:00:00 2001 From: Valerio Mariani <valerio.mariani@unibas.ch> Date: Wed, 6 Apr 2011 12:07:40 +0200 Subject: [PATCH] Support for Homebrew and Eigen3 Added support for Homebrew MacOSX packaging system and for Eigen3 (in Eigen2 compatibility mode) --- CMakeLists.txt | 3 +++ build_configs/darwin_homebrew.txt | 2 ++ 2 files changed, 5 insertions(+) create mode 100644 build_configs/darwin_homebrew.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 82b1b67d7..592751d5f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -103,6 +103,8 @@ else() set(_PROFILE OFF) endif() +add_definitions(-DEIGEN2_SUPPORT) + if (COMPOUND_LIB) set(_COMP_LIB "${COMPOUND_LIB}") if (NOT IS_ABSOLUTE "${COMPOUND_LIB}") @@ -251,6 +253,7 @@ include_directories(${Boost_INCLUDE_DIRS} ${EIGEN2_INCLUDE_DIR} ${TIFF_INCLUDE_DIR} ${SPNAV_INCLUDE_DIR} + ${PNG_INCLUDE_DIR} ) if (UNIX) SET(CMAKE_SKIP_BUILD_RPATH FALSE) diff --git a/build_configs/darwin_homebrew.txt b/build_configs/darwin_homebrew.txt new file mode 100644 index 000000000..c88a16256 --- /dev/null +++ b/build_configs/darwin_homebrew.txt @@ -0,0 +1,2 @@ +set(PNG_INCLUDE_DIR "/usr/X11/include" CACHE PATH "include path for system libpng") +set(EIGEN2_INCLUDE_DIR "/usr/local/include/eigen3" CACHE PATH "Eigen3-compatible include path") -- GitLab