summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorPeter Drahos <drahosp@gmail.com>2011-03-19 02:11:20 +0100
committerPeter Drahos <drahosp@gmail.com>2011-03-19 02:11:20 +0100
commite44595b3410226a2f8475b1ae49123577cd3a62d (patch)
tree15d3c0e0076bc45479d4176e83bacc19929e8583 /CMakeLists.txt
parent1c87c3327f66c33f5142e9aebd7a1b2dfd116238 (diff)
downloadlua-e44595b3410226a2f8475b1ae49123577cd3a62d.tar.gz
New dist.cmake
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt14
1 files changed, 8 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0d9ba3d..8297864 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -127,12 +127,14 @@ target_link_libraries ( lua liblua )
add_executable ( luac ${SRC_LUAC} ${LUAC_RC} )
target_link_libraries ( luac liblua_static )
-## INSTALL
-install ( TARGETS lua luac liblua RUNTIME DESTINATION ${INSTALL_BIN} LIBRARY DESTINATION ${INSTALL_LIB} ARCHIVE DESTINATION ${INSTALL_LIB} )
-install ( FILES src/lua.h src/lualib.h src/lauxlib.h etc/lua.hpp ${CMAKE_CURRENT_BINARY_DIR}/luaconf.h DESTINATION ${INSTALL_INC} )
-install ( FILES etc/strict.lua DESTINATION ${INSTALL_LMOD} )
-install ( DIRECTORY doc etc test DESTINATION ${INSTALL_DATA} )
-install ( FILES README COPYRIGHT HISTORY DESTINATION ${INSTALL_DATA} )
+install_executable ( lua luac )
+install_library ( liblua )
+install_data ( README COPYRIGHT HISTORY )
+install_lua_module ( strict etc/strict.lua )
+install_header (src/lua.h src/lualib.h src/lauxlib.h etc/lua.hpp ${CMAKE_CURRENT_BINARY_DIR}/luaconf.h )
+install_doc ( doc/ )
+install_foo ( etc/ )
+install_test ( test/ )
## TESTS
set(LUA lua)