Adding llvm/clang to our CMakeLists files
The indexer target now depends on libclang. This will force cmake to build the required parts of llvm and clang.
This commit is contained in:
parent
1f51a89d39
commit
5f4da9324a
@ -34,5 +34,6 @@ if( NOT CMAKE_BUILD_TYPE )
|
||||
set( CMAKE_BUILD_TYPE RELEASE )
|
||||
endif()
|
||||
|
||||
add_subdirectory( llvm )
|
||||
add_subdirectory( BoostParts )
|
||||
add_subdirectory( ycm )
|
||||
|
@ -33,6 +33,8 @@ include_directories(
|
||||
SYSTEM
|
||||
${BoostParts_SOURCE_DIR}
|
||||
${PYTHON_INCLUDE_DIRS}
|
||||
"${LLVM_SOURCE_DIR}/include"
|
||||
"${LLVM_SOURCE_DIR}/tools/clang/include"
|
||||
)
|
||||
|
||||
file( GLOB_RECURSE SOURCES *.h *.cpp )
|
||||
@ -55,6 +57,7 @@ add_library( ${PROJECT_NAME} SHARED
|
||||
target_link_libraries( ${PROJECT_NAME}
|
||||
BoostParts
|
||||
${PYTHON_LIBRARIES}
|
||||
libclang_static
|
||||
)
|
||||
|
||||
#############################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user