From 218ef6a68a430a14ba312d746c3a7ff02f2646a9 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Tue, 27 Jul 2010 17:08:31 -0500 Subject: [PATCH] Add cmake builds for the examples --- example-sdl/CMakeLists.txt | 7 +++++++ example/CMakeLists.txt | 3 +++ 2 files changed, 10 insertions(+) create mode 100644 example-sdl/CMakeLists.txt create mode 100644 example/CMakeLists.txt diff --git a/example-sdl/CMakeLists.txt b/example-sdl/CMakeLists.txt new file mode 100644 index 0000000..b10a4b5 --- /dev/null +++ b/example-sdl/CMakeLists.txt @@ -0,0 +1,7 @@ +find_package(SDL) + +if(SDL_FOUND) + include_directories(../src ${SDL_INCLUDE_DIR}) + add_executable(example-sdl sdl.c) + target_link_libraries(example-sdl wiiuse ${SDL_LIBRARY}) +endif() \ No newline at end of file diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt new file mode 100644 index 0000000..28dcbbb --- /dev/null +++ b/example/CMakeLists.txt @@ -0,0 +1,3 @@ +include_directories(../src) +add_executable(example example.c) +target_link_libraries(example wiiuse) \ No newline at end of file