diff options
author | Martin Müllenhaupt <mm@netlair.de> | 2014-10-09 07:23:30 (GMT) |
---|---|---|
committer | Martin Müllenhaupt <mm@netlair.de> | 2014-10-09 07:23:30 (GMT) |
commit | 56550a2aa6e8ee0d888490f076b80087e3394df7 (patch) | |
tree | dc690e2b82779d48c901a440546888b56877c106 /src | |
parent | 5d8de0d66eb6aea8ca61950ef00f04d41a266d13 (diff) | |
download | mxe-56550a2aa6e8ee0d888490f076b80087e3394df7.zip mxe-56550a2aa6e8ee0d888490f076b80087e3394df7.tar.gz mxe-56550a2aa6e8ee0d888490f076b80087e3394df7.tar.bz2 |
package sdl_image: create a test to trigger #367
Diffstat (limited to 'src')
-rw-r--r-- | src/sdl_image-test-CMakeLists.txt | 11 | ||||
-rw-r--r-- | src/sdl_image.mk | 7 |
2 files changed, 18 insertions, 0 deletions
diff --git a/src/sdl_image-test-CMakeLists.txt b/src/sdl_image-test-CMakeLists.txt new file mode 100644 index 0000000..6323a8d --- /dev/null +++ b/src/sdl_image-test-CMakeLists.txt @@ -0,0 +1,11 @@ +project(18) +cmake_minimum_required(VERSION 2.8) + +find_package(SDL REQUIRED) +find_package(SDL_image REQUIRED) + +include_directories( ${SDL_INCLUDE_DIRS} ${SDL_IMAGE_INCLUDE_DIRS}) +add_executable(sdl_image_test + sdl_image-test.c + ) +target_link_libraries(sdl_image_test ${SDL_LIBRARY} ${SDL_IMAGE_LIBRARY} ) diff --git a/src/sdl_image.mk b/src/sdl_image.mk index 67252b1..00ce88c 100644 --- a/src/sdl_image.mk +++ b/src/sdl_image.mk @@ -38,6 +38,13 @@ define $(PKG)_BUILD -W -Wall -Werror -ansi -pedantic \ '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-sdl_image.exe' \ `'$(TARGET)-pkg-config' SDL_image --cflags --libs` + + mkdir -p '$(1)/cmake-build-test' + cp '$(2)-CMakeLists.txt' '$(1)/cmake-build-test/CMakeLists.txt' + cp '$(2).c' '$(1)/cmake-build-test/' + cd '$(1)/cmake-build-test' && cmake . \ + -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' + $(MAKE) -C '$(1)/cmake-build-test' -j '$(JOBS)' endef $(PKG)_BUILD_SHARED = |