diff options
author | don b <don@kendrick.(none)> | 2011-10-18 04:16:02 (GMT) |
---|---|---|
committer | don b <don@kendrick.(none)> | 2011-10-18 04:16:02 (GMT) |
commit | 1a1ab5b5ab926652293d509b0fd4d7f57451c794 (patch) | |
tree | ae84e54ba0c7a4df7b11afef058970b67c8a8527 /tests/CMakeLists.txt | |
parent | a5d5d21dfbe1e6c847a32b73c90106df2a3442de (diff) |
improve freebsd build. also remove windows unicode preamble from .cc
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r-- | tests/CMakeLists.txt | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index d3abff2..2ed625a 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -74,13 +74,20 @@ include(${QT_USE_FILE}) # Turn off Eigen SIMD optimization if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DEIGEN_DONT_ALIGN") + if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DEIGEN_DONT_ALIGN") + endif() endif() if (NOT EIGEN2_INCLUDE_DIR) find_path(EIGEN2_INCLUDE_DIR Eigen/Core PATHS ENV EIGEN2DIR /opt/local/include/eigen2 /usr/include/eigen2) + if (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") + find_path(EIGEN2_INCLUDE_DIR + Eigen/Core + PATHS ENV EIGEN2DIR /usr/local/include/eigen2 ) + endif() if (NOT EIGEN2_INCLUDE_DIR) message(FATAL_ERROR "Eigen2 not found") else() @@ -126,6 +133,12 @@ endif() # Flex/Bison find_package(BISON) + +if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") + # FreeBSD has an old flex in /usr/bin and a new flex in /usr/local/bin + set(FLEX_EXECUTABLE /usr/local/bin/flex) +endif() + find_package(FLEX) # The COMPILE_FLAGS and forced C++ compiler is just to be compatible with qmake if (WIN32) |