diff --git a/CMakeLists.txt b/CMakeLists.txt index e82280e2b2a20277e401252b7362fcabed884eeb..88f023b9179f04b2a76804832a57265c794b074f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -804,8 +804,11 @@ else(HAVE_FLTK) endif(HAVE_FLTK) # we could specify include dirs more selectively, but this is simpler -include_directories(Common Fltk Geo Graphics Mesh Solver Numeric Parser Plugin - Post Qt ${EXTERNAL_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR}/Common) +include_directories(Common Fltk Geo Graphics Mesh Solver Numeric Parser + Plugin Post Qt ${EXTERNAL_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR}/Common) + +# set this for external codes that might include this CMakeList file +set(GMSH_EXTERNAL_INCLUDE_DIRS ${EXTERNAL_INCLUDES} PARENT_SCOPE) # group sources for easier navigation in IDEs foreach(DIR ${GMSH_DIRS}) @@ -1059,3 +1062,4 @@ message("") mark_as_advanced(BISON FLEX GMP_LIB GMSH_EXTRA_VERSION HDF5_LIB MAKEINFO MED_LIB OCC_INC SZ_LIB TAUCS_LIB LUA_LIB TEXI2PDF READLINE_LIB) +