ccls/CMakeLists.txt

28 lines
653 B
CMake
Raw Normal View History

2017-02-22 01:06:43 +00:00
cmake_minimum_required (VERSION 3.3.1)
project (SuperClangIndex)
set (CMAKE_CXX_STANDARD 11)
#set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
file (GLOB SOURCE_FILES *.cc *.cpp)
include_directories("${PROJECT_SOURCE_DIR}/third_party")
add_executable (indexer ${SOURCE_FILES})
find_program (llvm_config llvm-config)
set (llvm_param --libdir)
message (${llvm_config})
execute_process (
COMMAND ${llvm_config} ${llvm_param}
OUTPUT_VARIABLE libclang_libdir)
message ("Using libclang at " ${libclang_libdir})
#find_package (clang COMPONENTS REQUIRED libclang)
#ind_package (libclang REQUIRED)
#target_link_libraries (indexer ${libclang})