CMake: Use wx_exe_link_libraries() to link sample libs

Fixes a recent regression and it should be used to enable monolithic build
This commit is contained in:
Tobias Taschner
2018-02-08 20:36:48 +01:00
parent 6300f151fb
commit 9a3b145731

View File

@@ -123,7 +123,7 @@ endif()
wx_add_sample(sound RES sound.rc DATA 9000g.wav cuckoo.wav doggrowl.wav tinkalink2.wav LIBRARIES adv DEPENDS wxUSE_SOUND)
wx_add_sample(splash DATA splash.png press.mpg LIBRARIES adv DEPENDS wxUSE_SPLASH)
if(TARGET splash AND wxUSE_MEDIACTRL)
target_link_libraries(splash media)
wx_exe_link_libraries(splash media)
endif()
wx_add_sample(splitter DEPENDS wxUSE_SPLITTER)
wx_add_sample(statbar DEPENDS wxUSE_STATUSBAR)