From 509f1dd6589fa4cd5bfaa3b89a0672549d859736 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sun, 21 May 2023 19:53:28 -0600 Subject: [PATCH] lightpreview: use WIN32_EXECUTABLE target property this disables the console window when the .exe is launched directly --- lightpreview/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lightpreview/CMakeLists.txt b/lightpreview/CMakeLists.txt index 356327b7..71d13fb0 100644 --- a/lightpreview/CMakeLists.txt +++ b/lightpreview/CMakeLists.txt @@ -12,6 +12,8 @@ add_executable(lightpreview glview.cpp glview.h) +set_target_properties(lightpreview PROPERTIES WIN32_EXECUTABLE YES) + find_package(embree 3.0 REQUIRED) INCLUDE_DIRECTORIES(${EMBREE_INCLUDE_DIRS})