aboutsummaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 1c7829e7d6..dfd0764a94 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -10,24 +10,26 @@ endforeach()
list(REMOVE_ITEM NEOVIM_SOURCES ${to_remove})
list(APPEND NEOVIM_SOURCES "${PROJECT_BINARY_DIR}/config/auto/pathdef.c")
-file( GLOB IO_SOURCES io/*.c )
+file( GLOB OS_SOURCES os/*.c )
-add_executable (vim ${NEOVIM_SOURCES} ${IO_SOURCES})
+add_executable (nvim ${NEOVIM_SOURCES} ${OS_SOURCES})
-target_link_libraries (vim m uv pthread)
+target_link_libraries (nvim m uv ${CMAKE_THREAD_LIBS_INIT})
include(CheckLibraryExists)
check_library_exists(termcap tgetent "" HAVE_LIBTERMCAP)
if (HAVE_LIBTERMCAP)
- target_link_libraries(vim termcap)
+ target_link_libraries(nvim termcap)
else()
check_library_exists(curses tgetent "" HAVE_LIBCURSES)
if (HAVE_LIBCURSES)
- target_link_libraries(vim curses)
+ target_link_libraries(nvim curses)
else()
message(FATAL_ERROR "can't find something resembling -ltermcap")
endif()
endif()
include_directories ("${PROJECT_SOURCE_DIR}/src/proto")
+
+install(TARGETS nvim RUNTIME DESTINATION bin)