From 5aeed46a2561751bf3fef0671d9861ae27ece87d Mon Sep 17 00:00:00 2001 From: aramis_acg Date: Wed, 21 Mar 2012 02:19:18 +0000 Subject: [PATCH] # CMake, samples and tools can now be switched on/off independently. git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1227 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- CMakeLists.txt | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fc0ac8a34..0794db16a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -137,12 +137,21 @@ SET ( BUILD_ASSIMP_TOOLS ON CACHE BOOL IF ( BUILD_ASSIMP_TOOLS ) IF ( WIN32 ) ADD_SUBDIRECTORY( tools/assimp_view/ ) - ADD_SUBDIRECTORY( samples/SimpleTexturedOpenGL/ ) ENDIF ( WIN32 ) ADD_SUBDIRECTORY( tools/assimp_cmd/ ) - ADD_SUBDIRECTORY( samples/SimpleOpenGL/ ) ENDIF ( BUILD_ASSIMP_TOOLS ) +SET ( BUILD_ASSIMP_SAMPLES ON CACHE BOOL + "If the official samples are built as well (needs Glut)." +) + +IF ( BUILD_ASSIMP_SAMPLES) + IF ( WIN32 ) + ADD_SUBDIRECTORY( samples/SimpleTexturedOpenGL/ ) + ENDIF ( WIN32 ) + ADD_SUBDIRECTORY( samples/SimpleOpenGL/ ) +ENDIF ( BUILD_ASSIMP_SAMPLES ) + SET ( BUILD_TESTS OFF CACHE BOOL "If the test suite for Assimp is built in addition to the library." )