From: Leonardo Florez-Valencia Date: Wed, 29 Jun 2016 14:39:25 +0000 (-0500) Subject: ... X-Git-Tag: v0.1~119 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=f14984e5d680d5dab9da5833d2c54e182d5e175f;p=cpPlugins.git ... --- 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)