diff options
author | don <don@lyubov.(none)> | 2011-12-14 21:02:55 (GMT) |
---|---|---|
committer | don <don@lyubov.(none)> | 2011-12-14 21:02:55 (GMT) |
commit | 1f790437ea8992b996cac2e1399af9ae62291115 (patch) | |
tree | 02271676ec1e79dbaec7fc12709ffac660a9dc2a /tests/CMakeLists.txt | |
parent | 21c4bbe7d46c19efe4d49d58c5fb11492275e4fe (diff) |
fix freebsd build, improve test_pretty_print error handle, improve documentation
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r-- | tests/CMakeLists.txt | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 6f776d2..5be321d 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -59,16 +59,11 @@ if(WIN32) # you have to pass -DCMAKE_VERBOSE_MAKEFILE=ON to cmake when you run it. endif() - # # Build test apps # # Boost -# -# usually it's found automatically, but some systems may need a custom install. -# in that case, run cmake with -DBOOST_ROOT=/path/to/boost/install -# (being the same path you passed to boost's --prefix when you built it) if (NOT $ENV{MACOSX_DEPLOY_DIR} STREQUAL "") set(BOOST_ROOT "$ENV{MACOSX_DEPLOY_DIR}") endif() @@ -111,10 +106,20 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") # Qt4 + +if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") + # make /usr/local/include/qt4 come before /usr/local/include (QT4 vs QT3) + set(CMAKE_INCLUDE_DIRECTORIES_BEFORE ON) +endif() + find_package(OpenGL) find_package(Qt4 COMPONENTS QtCore QtGui QtOpenGL REQUIRED) include(${QT_USE_FILE}) +if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") + set(CMAKE_INCLUDE_DIRECTORIES_BEFORE OFF) +endif() + # Eigen2 # Turn off Eigen SIMD optimization |