summaryrefslogtreecommitdiffstats
path: root/src/sdl-test.cmake
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-test.cmake
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-test.cmake')
-rw-r--r--src/sdl-test.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/sdl-test.cmake b/src/sdl-test.cmake
new file mode 100644
index 0000000..0b9a937
--- /dev/null
+++ b/src/sdl-test.cmake
@@ -0,0 +1,15 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+# partial module - included by src/cmake/CMakeLists.txt
+
+set(TGT test-${PKG}-cmake)
+
+enable_language(C)
+add_executable(${TGT} ${CMAKE_CURRENT_LIST_DIR}/${PKG}-test.c)
+
+find_package(SDL ${PKG_VERSION} EXACT REQUIRED)
+include_directories(${SDL_INCLUDE_DIRS})
+target_link_libraries(${TGT} ${SDL_LIBRARIES})
+
+install(TARGETS ${TGT} DESTINATION bin)