Browse Source

merge

Former-commit-id: b2e9ec81cbc9841b5047de99368ac4f615b222a5
Alec Jacobson 10 years ago
parent
commit
e474e4ed07
1 changed files with 16 additions and 0 deletions
  1. 16 0
      optional/CMakeLists.txt

+ 16 - 0
optional/CMakeLists.txt

@@ -27,6 +27,12 @@ else (ANTTWEAKBAR_FOUND)
   message(STATUS "AntTweakBar not found.")
   message(STATUS "AntTweakBar not found.")
 endif(ANTTWEAKBAR_FOUND)
 endif(ANTTWEAKBAR_FOUND)
 
 
+## Check for Boost
+find_package(BOOST QUIET)
+if (Boost_FOUND)
+  include_directories( ${BOOST_INCLUDE_DIR})
+endif(Boost_FOUND)
+
 
 
 ## Check for CoMiSo, if not available skip the examples that depends on it
 ## Check for CoMiSo, if not available skip the examples that depends on it
 find_package(LIBCOMISO QUIET)
 find_package(LIBCOMISO QUIET)
@@ -133,6 +139,16 @@ if (ANTTWEAKBAR_FOUND)
 add_library(iglanttweakbar STATIC ${SOURCES_ANTTWEAKBAR})
 add_library(iglanttweakbar STATIC ${SOURCES_ANTTWEAKBAR})
 endif (ANTTWEAKBAR_FOUND)
 endif (ANTTWEAKBAR_FOUND)
 
 
+#### Compile the boost part
+if (Boost_FOUND)
+  file(GLOB SOURCES_BOOST
+    "${PROJECT_SOURCE_DIR}/../include/igl/boost/*.cpp"
+  )
+add_library(iglboost STATIC ${SOURCES_BOOST})
+else (Boost_FOUND)
+  message(STATUS "Boost not found.")
+endif (Boost_FOUND)
+
 #### Compile the BBW part
 #### Compile the BBW part
 
 
 file(GLOB SOURCES_BBW
 file(GLOB SOURCES_BBW