Browse Source

Made the compilation of examples optional.

Ioannis Koutras 13 years ago
parent
commit
0c08ba1b45
2 changed files with 4 additions and 1 deletions
  1. 3 1
      CMakeLists.txt
  2. 1 0
      DefineOptions.cmake

+ 3 - 1
CMakeLists.txt

@@ -61,5 +61,7 @@ include_directories(
 
 add_library(${DMMLIB_SHARED_LIBRARY} SHARED ${dmmlib_SRCS})
 
-add_subdirectory(examples)
+if (WITH_EXAMPLES)
+  add_subdirectory(examples)
+endif (WITH_EXAMPLES)
 

+ 1 - 0
DefineOptions.cmake

@@ -1 +1,2 @@
 option(HAVE_LOCKS "Build with POSIX locking mechanisms" ON)
+option(WITH_EXAMPLES "Build with examples" OFF)