mirror of
https://github.com/neovim/neovim.git
synced 2025-11-14 22:39:08 +00:00
Problem:
Dirs "config", "packaging", and "third-party" are all closely related
but this is not obvious from the layout. This adds friction for new
contributors.
Solution:
- rename config/ to cmake.config/
- rename test/config/ to test/cmakeconfig/ because it is used in Lua
tests: require('test.cmakeconfig.paths').
- rename packaging/ to cmake.packaging/
- rename third-party/ to cmake.deps/ (parallel with .deps/)
20 lines
362 B
Plaintext
20 lines
362 B
Plaintext
cmake_minimum_required(VERSION 2.8.12)
|
|
# some parsers have c++ scanner, problem?
|
|
project(parser C) # CXX
|
|
|
|
add_library(parser
|
|
MODULE
|
|
src/parser.c
|
|
)
|
|
set_target_properties(
|
|
parser
|
|
PROPERTIES
|
|
POSITION_INDEPENDENT_CODE ON
|
|
OUTPUT_NAME ${PARSERLANG}
|
|
PREFIX ""
|
|
)
|
|
|
|
include_directories(src)
|
|
|
|
install(TARGETS parser LIBRARY DESTINATION lib/nvim/parser)
|