summaryrefslogtreecommitdiffstats
path: root/src/sdl.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2015-10-04 05:01:18 (GMT)
committerTony Theodore <tonyt@logyst.com>2015-10-04 05:01:18 (GMT)
commitee5db756fa617c9d5ba6ffb1c9f19cf256a880e3 (patch)
tree89ff22e81cb4927db77bfec80244d343ab9d4e6d /src/sdl.mk
parent1dd126b160ef3ec80fee9b2c5d0563486815cbe6 (diff)
downloadmxe-ee5db756fa617c9d5ba6ffb1c9f19cf256a880e3.zip
mxe-ee5db756fa617c9d5ba6ffb1c9f19cf256a880e3.tar.gz
mxe-ee5db756fa617c9d5ba6ffb1c9f19cf256a880e3.tar.bz2
boost pthreads sdl: tidy up cmake tests
closes #887
Diffstat (limited to 'src/sdl.mk')
-rw-r--r--src/sdl.mk14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/sdl.mk b/src/sdl.mk
index aee5fb6..d0b033c 100644
--- a/src/sdl.mk
+++ b/src/sdl.mk
@@ -36,15 +36,9 @@ define $(PKG)_BUILD
# test cmake
mkdir '$(1).test-cmake'
- (echo 'cmake_minimum_required(VERSION 2.8.11)'; \
- echo 'project(test-$(PKG)-cmake)'; \
- echo 'find_package(SDL REQUIRED)'; \
- echo 'include_directories($${SDL_INCLUDE_DIRS})'; \
- echo 'add_executable(test-$(PKG)-cmake $(PREFIX)/../src/$(PKG)-test.c)'; \
- echo 'target_link_libraries(test-$(PKG)-cmake $${SDL_LIBRARIES})'; \
- echo 'install(TARGETS test-$(PKG)-cmake DESTINATION bin)'; \
- ) > '$(1).test-cmake/CMakeLists.txt'
-
- cd '$(1).test-cmake' && '$(TARGET)-cmake' .
+ cd '$(1).test-cmake' && '$(TARGET)-cmake' \
+ -DPKG=$(PKG) \
+ -DPKG_VERSION=$($(PKG)_VERSION) \
+ '$(PWD)/src/cmake/test'
$(MAKE) -C '$(1).test-cmake' -j 1 install
endef