summaryrefslogtreecommitdiffstats
path: root/src/sdl-test.cmake
diff options
context:
space:
mode:
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)