From 07951c8bdf6164e34f37c3d88799e4e98e46d1ee Mon Sep 17 00:00:00 2001 From: Kimball Thurston Date: Wed, 8 Aug 2018 22:28:55 +1200 Subject: [PATCH] make pyilmbase tests conditional This makes the PyIlmBase tests conditional in the same manner as OpenEXR and IlmBase Signed-off-by: Kimball Thurston --- OpenEXR/IlmImfTest/CMakeLists.txt | 2 +- PyIlmBase/CMakeLists.txt | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/OpenEXR/IlmImfTest/CMakeLists.txt b/OpenEXR/IlmImfTest/CMakeLists.txt index 563dddedb3..be16ecbdaa 100644 --- a/OpenEXR/IlmImfTest/CMakeLists.txt +++ b/OpenEXR/IlmImfTest/CMakeLists.txt @@ -62,7 +62,7 @@ ADD_EXECUTABLE ( IlmImfTest testYca.cpp ) - SET_ILMBASE_INCLUDE_DIRS( IlmImfTest ) +SET_ILMBASE_INCLUDE_DIRS( IlmImfTest ) ADD_TEST ( TestIlmImf IlmImfTest ) TARGET_LINK_LIBRARIES ( IlmImfTest diff --git a/PyIlmBase/CMakeLists.txt b/PyIlmBase/CMakeLists.txt index 5ef6319558..5bfccf001c 100644 --- a/PyIlmBase/CMakeLists.txt +++ b/PyIlmBase/CMakeLists.txt @@ -42,5 +42,8 @@ ENDIF () ########################## # Tests ########################## -ADD_SUBDIRECTORY ( PyIexTest ) -ADD_SUBDIRECTORY ( PyImathTest ) +IF (ENABLE_TESTS) + ADD_SUBDIRECTORY ( PyIexTest ) + ADD_SUBDIRECTORY ( PyImathTest ) +ENDIF () +