From dc193d1fd246af68488aa678d620e2cad7140cbd Mon Sep 17 00:00:00 2001 From: Tuomas Virtanen Date: Sat, 23 Jun 2018 23:46:26 +0300 Subject: Sort out examples better --- CMakeLists.txt | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 53a5f55..9a5d90e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -91,23 +91,27 @@ configure_file( ) if(BUILD_EXAMPLES) - add_executable(exampleaudio examples/example_audio.c) - add_executable(examplevideo examples/example_video.c) - add_executable(examplecustvideo examples/example_cust_video.c) + add_executable(audio examples/example_audio.c) + add_executable(complex examples/example_complex.c) + add_executable(simple examples/example_simple.c) + add_executable(custom examples/example_custom.c) if(MINGW) - target_link_libraries(exampleaudio mingw32) - target_link_libraries(examplevideo mingw32) - target_link_libraries(examplecustvideo mingw32) + target_link_libraries(audio mingw32) + target_link_libraries(complex mingw32) + target_link_libraries(simple mingw32) + target_link_libraries(custom mingw32) endif() - set_property(TARGET exampleaudio PROPERTY C_STANDARD 99) - set_property(TARGET examplevideo PROPERTY C_STANDARD 99) - set_property(TARGET examplecustvideo PROPERTY C_STANDARD 99) + set_property(TARGET audio PROPERTY C_STANDARD 99) + set_property(TARGET complex PROPERTY C_STANDARD 99) + set_property(TARGET simple PROPERTY C_STANDARD 99) + set_property(TARGET custom PROPERTY C_STANDARD 99) - target_link_libraries(exampleaudio SDL_kitchensink_static ${LIBRARIES}) - target_link_libraries(examplevideo SDL_kitchensink_static ${LIBRARIES}) - target_link_libraries(examplecustvideo SDL_kitchensink_static ${LIBRARIES}) + target_link_libraries(audio SDL_kitchensink_static ${LIBRARIES}) + target_link_libraries(complex SDL_kitchensink_static ${LIBRARIES}) + target_link_libraries(simple SDL_kitchensink_static ${LIBRARIES}) + target_link_libraries(custom SDL_kitchensink_static ${LIBRARIES}) endif() # Installation -- cgit v1.2.3