chore(CMakeLists.txt): add EMACS_LIB option to specify installation path for emacs stuff

This commit is contained in:
Soonho Kong 2014-10-06 11:19:23 -07:00
parent e41573afc4
commit 286aae933c
2 changed files with 3 additions and 2 deletions

View file

@ -30,6 +30,8 @@ option(CROSS_COMPILE "CROSS_COMPILE" OFF)
# When ON we try to minimize the amount of memory needed to compile Lean using gcc.
# We use this flag when compiling at Travis.
option(CONSERVE_MEMORY "CONSERVE_MEMORY" OFF)
# Place to install emacs related files
option(EMACS_LIB "EMACS_LIB" "emacs")
# Added for CTest
include(CTest)
@ -293,7 +295,6 @@ set(CMAKE_EXE_LINKER_FLAGS_TESTCOV "${CMAKE_EXE_LINKER_FLAGS} -fprofile-arcs -ft
set(ALL_LIBS ${LEAN_LIBS} ${EXTRA_LIBS})
add_subdirectory(shell)
add_subdirectory(emacs)
add_subdirectory(tests/util)
add_subdirectory(tests/util/numerics)
add_subdirectory(tests/util/interval)

View file

@ -1,2 +1,2 @@
FILE(GLOB LEAN_MODE_FILES *.el)
install(FILES ${LEAN_MODE_FILES} DESTINATION ./emacs)
install(FILES ${LEAN_MODE_FILES} DESTINATION ${EMACS_LIB})