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:
Strahinja Val Markovic 2012-07-05 17:58:49 -07:00
parent 1f51a89d39
commit 5f4da9324a
2 changed files with 4 additions and 0 deletions

View File

@ -34,5 +34,6 @@ if( NOT CMAKE_BUILD_TYPE )
set( CMAKE_BUILD_TYPE RELEASE ) set( CMAKE_BUILD_TYPE RELEASE )
endif() endif()
add_subdirectory( llvm )
add_subdirectory( BoostParts ) add_subdirectory( BoostParts )
add_subdirectory( ycm ) add_subdirectory( ycm )

View File

@ -33,6 +33,8 @@ include_directories(
SYSTEM SYSTEM
${BoostParts_SOURCE_DIR} ${BoostParts_SOURCE_DIR}
${PYTHON_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS}
"${LLVM_SOURCE_DIR}/include"
"${LLVM_SOURCE_DIR}/tools/clang/include"
) )
file( GLOB_RECURSE SOURCES *.h *.cpp ) file( GLOB_RECURSE SOURCES *.h *.cpp )
@ -55,6 +57,7 @@ add_library( ${PROJECT_NAME} SHARED
target_link_libraries( ${PROJECT_NAME} target_link_libraries( ${PROJECT_NAME}
BoostParts BoostParts
${PYTHON_LIBRARIES} ${PYTHON_LIBRARIES}
libclang_static
) )
############################################################################# #############################################################################