]> Creatis software - cpPlugins.git/commitdiff
...
authorLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Wed, 29 Jun 2016 14:39:25 +0000 (09:39 -0500)
committerLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Wed, 29 Jun 2016 14:39:25 +0000 (09:39 -0500)
cmake/cpPlugins_Functions.cmake

index db0215edf7da60e9eecd44d00d484cf374b5e724..c38ea149e1f182ec2c882d943a724aa0f26e1ec0 100644 (file)
@@ -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)