2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2015-10-04 06:01:18 +01:00
|
|
|
|
|
|
|
# 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)
|