Browse Source

fix anttweakbar include handling

Former-commit-id: 9d0e14a035efa70b0d6b8e431743fddc0a017e3e
Alec Jacobson 9 years ago
parent
commit
812f18eced
1 changed files with 5 additions and 0 deletions
  1. 5 0
      shared/cmake/CMakeLists.txt

+ 5 - 0
shared/cmake/CMakeLists.txt

@@ -100,8 +100,13 @@ endif()
 
 ### Compile the AntTweakBar part ###
 if(LIBIGL_WITH_ANTTWEAKBAR)
+  set(ANTTWEAKBAR_DIR "${LIBIGL_EXTERNAL}/anttweakbar")
+  set(ANTTWEAKBAR_INCLUDE_DIR "${ANTTWEAKBAR_DIR}/include")
+  list(APPEND LIBIGL_INCLUDE_DIRS "${ANTTWEAKBAR_INCLUDE_DIR}")
   if(LIBIGL_USE_STATIC_LIBRARY)
     CompileIGL_Module("anttweakbar")
+    target_include_directories(iglanttweakbar PRIVATE
+      ${ANTTWEAKBAR_INCLUDE_DIR})
   endif()
 endif()