diff options
author | Tony Theodore <tonyt@logyst.com> | 2015-10-04 05:01:18 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2015-10-04 05:01:18 (GMT) |
commit | ee5db756fa617c9d5ba6ffb1c9f19cf256a880e3 (patch) | |
tree | 89ff22e81cb4927db77bfec80244d343ab9d4e6d /src/sdl.mk | |
parent | 1dd126b160ef3ec80fee9b2c5d0563486815cbe6 (diff) | |
download | mxe-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.mk | 14 |
1 files changed, 4 insertions, 10 deletions
@@ -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 |