# main
ADD_EXECUTABLE(${SAMPLE} WIN32 ${SAMPLE})
+IF(WIN32)
+ SET_TARGET_PROPERTIES(${SAMPLE} PROPERTIES LINK_FLAGS /subsystem:console )
+ENDIF(WIN32)
# Link against bbwx
TARGET_LINK_LIBRARIES(${SAMPLE} ${bbwx_LIBRARIES} ${BBTK_LIBRARIES} ${WXWIDGETS_LIBRARIES})
# main
ADD_EXECUTABLE(${SAMPLE} ${SAMPLE})
-SET_TARGET_PROPERTIES(${SAMPLE} PROPERTIES LINK_FLAGS /subsystem:console )
-
+IF(WIN32)
+ SET_TARGET_PROPERTIES(${SAMPLE} PROPERTIES LINK_FLAGS /subsystem:console )
+ENDIF(WIN32)
# Link with bbtk
TARGET_LINK_LIBRARIES(${SAMPLE} ${BBTK_LIBRARIES})
# main
ADD_EXECUTABLE(${SAMPLE} WIN32 ${SAMPLE})
-SET_TARGET_PROPERTIES(${SAMPLE} PROPERTIES LINK_FLAGS /subsystem:console )
-
+IF(WIN32)
+ SET_TARGET_PROPERTIES(${SAMPLE} PROPERTIES LINK_FLAGS /subsystem:console )
+ENDIF(WIN32)
# Link against bbwx
TARGET_LINK_LIBRARIES(${SAMPLE} ${bbwx_LIBRARIES} ${BBTK_LIBRARIES} ${WXWIDGETS_LIBRARIES})
# main
ADD_EXECUTABLE(${SAMPLE} WIN32 ${SAMPLE})
-SET_TARGET_PROPERTIES(${SAMPLE} PROPERTIES LINK_FLAGS /subsystem:console )
-
+IF(WIN32)
+ SET_TARGET_PROPERTIES(${SAMPLE} PROPERTIES LINK_FLAGS /subsystem:console )
+ENDIF(WIN32)
# Link against bbwx
TARGET_LINK_LIBRARIES(${SAMPLE} ${bbwx_LIBRARIES} ${BBTK_LIBRARIES} ${WXWIDGETS_LIBRARIES})