From: guigues Date: Wed, 11 Feb 2009 15:31:20 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: EED.02Oct2009~101 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=8586e5e054283f8f7b22dd17b12e2d6b8338df62;p=bbtk.git *** empty log message *** --- diff --git a/samples/SampleInsertWxBlackBoxInOwnFrame/CMakeLists.txt b/samples/SampleInsertWxBlackBoxInOwnFrame/CMakeLists.txt index 3d042fd..7b8e1b9 100644 --- a/samples/SampleInsertWxBlackBoxInOwnFrame/CMakeLists.txt +++ b/samples/SampleInsertWxBlackBoxInOwnFrame/CMakeLists.txt @@ -18,5 +18,8 @@ SET(SAMPLE bbtkSampleInsertWxBlackBoxInOwnFrame) # 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}) diff --git a/samples/SampleInterpreter/CMakeLists.txt b/samples/SampleInterpreter/CMakeLists.txt index be4949b..045e79b 100644 --- a/samples/SampleInterpreter/CMakeLists.txt +++ b/samples/SampleInterpreter/CMakeLists.txt @@ -13,8 +13,9 @@ SET(SAMPLE bbtkSampleInterpreter) # 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}) diff --git a/samples/SampleOutputObserver/CMakeLists.txt b/samples/SampleOutputObserver/CMakeLists.txt index 2bcb211..a72b24d 100644 --- a/samples/SampleOutputObserver/CMakeLists.txt +++ b/samples/SampleOutputObserver/CMakeLists.txt @@ -18,7 +18,8 @@ CREA_FIND_AND_USE_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}) diff --git a/samples/SampleWidgetsBase/CMakeLists.txt b/samples/SampleWidgetsBase/CMakeLists.txt index 7aacce5..b264e2f 100644 --- a/samples/SampleWidgetsBase/CMakeLists.txt +++ b/samples/SampleWidgetsBase/CMakeLists.txt @@ -17,7 +17,8 @@ SET(SAMPLE bbtkSampleWidgetsBase) # 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})