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

Commit 7cb5b18

Browse files
committed
build: update dist.cmake
1 parent 9bdfe70 commit 7cb5b18

File tree

2 files changed

+426
-101
lines changed

2 files changed

+426
-101
lines changed

CMakeLists.txt

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
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(classlib NONE)
8-
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
9-
INCLUDE(dist.cmake)
7+
project ( classlib NONE )
8+
cmake_minimum_required ( VERSION 2.6 )
9+
include ( dist.cmake )
1010

11-
# Install all files and documentation
12-
INSTALL (FILES classlib.lua unclasslib.lua DESTINATION ${INSTALL_LMOD})
13-
INSTALL (FILES README classlib.doc classlib-summary.doc unclasslib-summary.doc DESTINATION ${INSTALL_DOC})
14-
INSTALL (FILES account.lua multiple.lua nmultiple.lua nsingle.lua single.lua DESTINATION ${INSTALL_EXAMPLE})
11+
install_lua_module ( classlib classlib.lua )
12+
install_lua_module ( unclasslib unclasslib.lua )
13+
install_doc ( README classlib.doc classlib-summary.doc unclasslib-summary.doc )
14+
install_example ( account.lua multiple.lua nmultiple.lua nsingle.lua single.lua )
15+
install_test ( test.lua )
16+
17+
#FIX(doesn't import libs): add_lua_test ( test.lua )

0 commit comments

Comments
 (0)