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

Commit a96d32a

Browse files
committed
build: update dist.cmake
1 parent 35fd2f9 commit a96d32a

2 files changed

Lines changed: 416 additions & 102 deletions

File tree

CMakeLists.txt

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

11-
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
11+
include_directories ( ${CMAKE_CURRENT_SOURCE_DIR} )
12+
13+
install_lua_module ( bc number.c lbc.c bc.def )
14+
install_data ( README )
15+
install_test ( test.lua )
16+
17+
add_lua_test ( test.lua )
1218

13-
ADD_LUA_MODULE(bc number.c lbc.c bc.def)
14-
ADD_LUA_TEST(test.lua)
1519

16-
INSTALL (TARGETS bc DESTINATION ${INSTALL_CMOD})
17-
INSTALL (FILES README DESTINATION ${INSTALL_DATA})
18-
INSTALL (FILES test.lua DESTINATION ${INSTALL_TEST})

0 commit comments

Comments
 (0)