This repository was archived by the owner on Nov 20, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +418
-105
lines changed
Expand file tree Collapse file tree 2 files changed +418
-105
lines changed Original file line number Diff line number Diff line change 1- # Copyright (C) 2007-2009 LuaDist.
1+ # Copyright (C) 2007-2011 LuaDist.
22# Created by Peter Kapec
33# Redistribution and use of this file is allowed according to the terms of the MIT license.
44# For details see the COPYRIGHT file distributed with LuaDist.
55# Please note that the package source code is licensed under its own license.
66
7- PROJECT ( lmapm C)
8- CMAKE_MINIMUM_REQUIRED ( VERSION 2.6)
9- INCLUDE ( dist.cmake)
7+ project ( lmapm C )
8+ cmake_minimum_required ( VERSION 2.6 )
9+ include ( dist.cmake )
1010
1111# Find Mapm library
12- FIND_PACKAGE ( MAPM REQUIRED)
13- INCLUDE_DIRECTORIES ( ${MAPM_INCLUDE_DIRS} )
12+ find_package ( MAPM REQUIRED )
13+ include_directories ( ${MAPM_INCLUDE_DIRS} )
1414
15- # Build
16- ADD_LUA_MODULE(mapm lmapm.c mapm.def)
17- TARGET_LINK_LIBRARIES (mapm ${MAPM_LIBRARIES} )
15+ install_lua_module ( mapm lmapm.c mapm.def )
16+ target_link_libraries ( mapm ${MAPM_LIBRARIES} )
17+
18+ install_data ( README )
19+ install_test ( test .lua )
20+
21+ add_lua_test ( test .lua )
1822
19- # Install all files and documentation
20- INSTALL (TARGETS mapm DESTINATION ${INSTALL_CMOD} )
21- INSTALL (FILES README DESTINATION ${INSTALL_DATA} )
22- INSTALL (FILES test .lua DESTINATION ${INSTALL_TEST} )
You can’t perform that action at this time.
0 commit comments