CMake: Fix building dialogs sample
Add the source files of the generic dialogs to the project, similar as is done in the bakefile. See previous commits573e887a4c
and6415bd553f
, which partially reverted it, for the full story.
This commit is contained in:
committed by
Vadim Zeitlin
parent
d8211f389c
commit
53dbff2962
@@ -23,7 +23,17 @@ wx_add_sample(dataview IMPORTANT dataview.cpp mymodels.cpp mymodels.h DEPENDS wx
|
|||||||
if(wxUSE_ON_FATAL_EXCEPTION AND (NOT WIN32 OR MSVC))
|
if(wxUSE_ON_FATAL_EXCEPTION AND (NOT WIN32 OR MSVC))
|
||||||
wx_add_sample(debugrpt LIBRARIES qa DEPENDS wxUSE_DEBUGREPORT)
|
wx_add_sample(debugrpt LIBRARIES qa DEPENDS wxUSE_DEBUGREPORT)
|
||||||
endif()
|
endif()
|
||||||
wx_add_sample(dialogs dialogs.cpp dialogs.h DATA tips.txt)
|
set(SAMPLE_DIALOGS_SRC dialogs.cpp dialogs.h)
|
||||||
|
if(NOT wxBUILD_SHARED AND (WXMSW OR APPLE)) # AND NOT WXUNIV
|
||||||
|
wx_list_add_prefix(SAMPLE_DIALOGS_SRC ../../src/generic/ colrdlgg.cpp dirdlgg.cpp filedlgg.cpp)
|
||||||
|
if(WXMSW)
|
||||||
|
wx_list_add_prefix(SAMPLE_DIALOGS_SRC ../../src/generic/ fontdlgg.cpp)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
if(WXGTK2)
|
||||||
|
wx_list_add_prefix(SAMPLE_DIALOGS_SRC ../../src/generic/ filedlgg.cpp)
|
||||||
|
endif()
|
||||||
|
wx_add_sample(dialogs ${SAMPLE_DIALOGS_SRC} DATA tips.txt)
|
||||||
wx_add_sample(dialup nettest.cpp LIBRARIES net DEPENDS wxUSE_DIALUP_MANAGER)
|
wx_add_sample(dialup nettest.cpp LIBRARIES net DEPENDS wxUSE_DIALUP_MANAGER)
|
||||||
wx_add_sample(display DEPENDS wxUSE_DISPLAY)
|
wx_add_sample(display DEPENDS wxUSE_DISPLAY)
|
||||||
wx_add_sample(dnd dnd.cpp RES dnd.rc DATA wxwin.png DEPENDS wxUSE_DRAG_AND_DROP)
|
wx_add_sample(dnd dnd.cpp RES dnd.rc DATA wxwin.png DEPENDS wxUSE_DRAG_AND_DROP)
|
||||||
|
Reference in New Issue
Block a user