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

Commit 781548e

Browse files
committed
build: update dist.cmake
1 parent 3db1528 commit 781548e

File tree

2 files changed

+430
-101
lines changed

2 files changed

+430
-101
lines changed

CMakeLists.txt

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

11-
INSTALL (FILES README DESTINATION ${INSTALL_DATA})
12-
INSTALL (DIRECTORY doc/ DESTINATION ${INSTALL_DOC})
13-
INSTALL (DIRECTORY tests/ DESTINATION ${INSTALL_TEST})
14-
INSTALL (DIRECTORY src/logging DESTINATION ${INSTALL_LMOD})
11+
install_lua_module ( logging src/logging/logging.lua ) # note different path (move?)
12+
install_lua_module ( logging.console src/logging/console.lua )
13+
install_lua_module ( logging.emaiil src/logging/email.lua )
14+
install_lua_module ( logging.file src/logging/file.lua )
15+
install_lua_module ( logging.socket src/logging/socket.lua )
16+
install_lua_module ( logging.sql src/logging/sql.lua )
17+
install_data ( README )
18+
install_doc ( doc )
19+
install_test ( tests )
20+
21+
add_lua_test ( tests/test.lua ${CMAKE_CURRENT_SOURCE_DIR}/tests ) # FIX: paths

0 commit comments

Comments
 (0)