Skip to content
This repository was archived by the owner on Nov 20, 2020. It is now read-only.

Commit 8f541c0

Browse files
committed
build: update dist.cmake
1 parent 5d80eb7 commit 8f541c0

File tree

2 files changed

+414
-105
lines changed

2 files changed

+414
-105
lines changed

CMakeLists.txt

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
1-
# Copyright (C) 2007-2009 LuaDist.
1+
# Copyright (C) 2007-2011 LuaDist.
22
# Created by Peter Drahoš
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(lpack C)
8-
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
9-
INCLUDE(dist.cmake)
7+
project ( lpack C )
8+
cmake_minimum_required ( VERSION 2.6 )
9+
include ( dist.cmake )
1010

11-
# Build
12-
ADD_LUA_MODULE(pack lpack.c pack.def)
11+
install_lua_module ( pack lpack.c pack.def )
12+
install_data ( README )
13+
install_test ( test.lua )
1314

14-
# Install all files and documentation
15-
INSTALL (TARGETS pack DESTINATION ${INSTALL_CMOD})
16-
INSTALL (FILES README DESTINATION ${INSTALL_DATA})
17-
INSTALL (FILES test.lua DESTINATION ${INSTALL_TEST})
18-
19-
ADD_LUA_TEST(test.lua)
20-
#FIX: add better test suite.
15+
add_lua_test ( test.lua )
16+
#improve: add better test suite.

0 commit comments

Comments
 (0)