From f14984e5d680d5dab9da5833d2c54e182d5e175f Mon Sep 17 00:00:00 2001 From: Leonardo Florez-Valencia Date: Wed, 29 Jun 2016 09:39:25 -0500 Subject: [PATCH] ... --- cmake/cpPlugins_Functions.cmake | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cmake/cpPlugins_Functions.cmake b/cmake/cpPlugins_Functions.cmake index db0215e..c38ea14 100644 --- a/cmake/cpPlugins_Functions.cmake +++ b/cmake/cpPlugins_Functions.cmake @@ -449,7 +449,14 @@ IF(BUILD_${_app_name}) ## -- Ok, compile application IF(_sources) - ADD_EXECUTABLE(${_app_name} ${_sources}) + SET(_gui_type "") + IF(WIN32) + SET(_gui_type WIN32) + ENDIF(WIN32) + IF(APPLE) + SET(_gui_type MACOSX_BUNDLE) + ENDIF(APPLE) + ADD_EXECUTABLE(${_app_name} ${_gui_type} ${_sources}) SET(${output_app} ${_app_name} PARENT_SCOPE) ELSE(_sources) SET(${output_app} "" PARENT_SCOPE) -- 2.47.1