]> Creatis software - bbtk.git/blobdiff - samples/SampleWidgetsBase/CMakeLists.txt
no message
[bbtk.git] / samples / SampleWidgetsBase / CMakeLists.txt
index b264e2f437d673760893272f01ef8bb3c785faaa..8bb193269092afdde077b8e7a38d402805a792e7 100644 (file)
@@ -16,9 +16,12 @@ CREA_FIND_AND_USE_LIBRARIES()
 SET(SAMPLE bbtkSampleWidgetsBase)
 
 # main 
-ADD_EXECUTABLE(${SAMPLE} WIN32 ${SAMPLE})
 IF(WIN32)
+  ADD_EXECUTABLE(${SAMPLE} WIN32 ${SAMPLE})
   SET_TARGET_PROPERTIES(${SAMPLE} PROPERTIES LINK_FLAGS /subsystem:console )
+ELSE(WIN32)
+  ADD_EXECUTABLE(${SAMPLE} MACOSX_BUNDLE ${SAMPLE})
 ENDIF(WIN32)
+
 # Link against bbwx
 TARGET_LINK_LIBRARIES(${SAMPLE} ${bbwx_LIBRARIES} ${BBTK_LIBRARIES} ${WXWIDGETS_LIBRARIES})