diff options
author | Marius Kintel <marius@kintel.net> | 2012-01-04 17:04:21 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2012-01-04 17:04:21 (GMT) |
commit | 9bac643ed815d18af07dbdd78f68d54e34ab68b9 (patch) | |
tree | 7d49a5d91f66a39fbf4307a401efec594990b490 /tests/CMakeLists.txt | |
parent | 5b503543a4befe057a38a0250261b53066200ffb (diff) | |
parent | c0ccad02162dc87b95c341a5f1b39468c1efbee9 (diff) |
Merge pull request #55 from openscad/netbsd_build
Netbsd build
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r-- | tests/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index e2920d8..78ef647 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -177,6 +177,8 @@ if (NOT EIGEN2_INCLUDE_DIR) endif() if (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") set(EIGEN2_FIND_PATHS /usr/local/include/eigen2) + elseif (${CMAKE_SYSTEM_NAME} MATCHES "NetBSD") + set(EIGEN2_FIND_PATHS /usr/pkg/include/eigen2) else() set(EIGEN2_FIND_PATHS /opt/local/include/eigen2 /usr/include/eigen2) endif() @@ -239,6 +241,11 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") set(FLEX_EXECUTABLE /usr/local/bin/flex) endif() +if(${CMAKE_SYSTEM_NAME} MATCHES "NetBSD") + include_directories( /usr/pkg/include /usr/X11R7/include ) + set(FLEX_EXECUTABLE /usr/pkg/bin/flex) +endif() + find_package(FLEX REQUIRED) # The COMPILE_FLAGS and forced C++ compiler is just to be compatible with qmake if (WIN32) |