mirror of https://git.wownero.com/dsc/mxe.git
package sdl_image: create a test to trigger #367
This commit is contained in:
parent
5d8de0d66e
commit
56550a2aa6
|
@ -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} )
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue