From 351ddded34cd2ba608a99f50868590a9f157cab8 Mon Sep 17 00:00:00 2001 From: Seo Youngjin Date: Fri, 26 Mar 2021 15:21:13 +0900 Subject: [PATCH] do not build samples if null renderer --- tools/CMakeLists.txt | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 8df1545..d124b19 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -10,12 +10,14 @@ if(LIBRW_PLATFORM_PS2) add_subdirectory(ps2test) endif() -if(NOT LIBRW_PLATFORM_PS2) - add_subdirectory(playground) - add_subdirectory(lights) - add_subdirectory(subrast) - add_subdirectory(camera) - add_subdirectory(im2d) - add_subdirectory(im3d) - add_subdirectory(ska2anm) +if(UNIX) + if(NOT LIBRW_PLATFORM_NULL AND NOT LIBRW_PLATFORM_PS2) + add_subdirectory(playground) + add_subdirectory(lights) + add_subdirectory(subrast) + add_subdirectory(camera) + add_subdirectory(im2d) + add_subdirectory(im3d) + add_subdirectory(ska2anm) + endif() endif()