Commit f94c5782 authored by Ole Christian Eidheim's avatar Ole Christian Eidheim
Browse files

Moved find_package to project cmake file

parent 669b1432
......@@ -12,6 +12,9 @@ if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
set(NOT_SUB_PROJECT 1)
endif()
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake_modules")
find_package(LibClang REQUIRED)
add_subdirectory(src)
option(BUILD_TESTING OFF)
......
......@@ -15,9 +15,6 @@ add_library(clangmm
Utility.cc
)
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake_modules")
find_package(LibClang REQUIRED)
include_directories(${LIBCLANG_INCLUDE_DIRS})
target_link_libraries(clangmm ${LIBCLANG_LIBRARIES})
target_include_directories(clangmm PUBLIC ${LIBCLANG_INCLUDE_DIRS} .)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment