From 1a02255033516e65cc7b69a4b5a617a28f285e2a Mon Sep 17 00:00:00 2001 From: Bradley Austin Davis Date: Wed, 1 Apr 2015 13:36:39 -0700 Subject: [PATCH] Remove the console window created when you start interface on win32 platforms Fixing cmake typo --- interface/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/interface/CMakeLists.txt b/interface/CMakeLists.txt index 3d829020e3..f4f390607b 100644 --- a/interface/CMakeLists.txt +++ b/interface/CMakeLists.txt @@ -103,7 +103,13 @@ if (APPLE) endif() # create the executable, make it a bundle on OS X -add_executable(${TARGET_NAME} MACOSX_BUNDLE ${INTERFACE_SRCS} ${QM}) +if (APPLE) + add_executable(${TARGET_NAME} MACOSX_BUNDLE ${INTERFACE_SRCS} ${QM}) +elseif(WIN32) + add_executable(${TARGET_NAME} WIN32 ${INTERFACE_SRCS} ${QM}) +else() + add_executable(${TARGET_NAME} ${INTERFACE_SRCS} ${QM}) +endif() # set up the external glm library add_dependency_external_projects(glm bullet)