summaryrefslogtreecommitdiffstats
path: root/src/sdl-test.cmake
blob: a80d6b9e416dfd8ee4ce411a0c5e608e9b6a9a13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# This file is part of MXE. See LICENSE.md for licensing 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)