Browse Source

Edits to make make install work for juci

merge-requests/37/head
Jørgen Lien Sellæg 11 years ago
parent
commit
d4bb47a3a7
  1. 3
      CMakeLists.txt
  2. 6
      src/CMakeLists.txt

3
CMakeLists.txt

@ -1,7 +1,8 @@
cmake_minimum_required (VERSION 2.8.4) cmake_minimum_required (VERSION 2.8.4)
set(project_name clangmm) set(project_name clangmm)
project(${project_name}) project(${project_name})
set(library_installation_path "/usr/local/lib/libclangmm/") set(library_path "/usr/local/lib/")
set(include_path "/usr/local/include/")
if(APPLE) if(APPLE)
set(Boost_USE_STATIC_LIBS "YES") set(Boost_USE_STATIC_LIBS "YES")

6
src/CMakeLists.txt

@ -48,7 +48,5 @@ add_library(${project_name} SHARED ${header_files} ${cc_files})
include_directories(${LIBCLANG_INCLUDE_DIRS}) include_directories(${LIBCLANG_INCLUDE_DIRS})
target_link_libraries(${project_name} ${LIBCLANG_LIBRARIES}) target_link_libraries(${project_name} ${LIBCLANG_LIBRARIES})
install(TARGETS ${project_name} install(TARGETS ${project_name} LIBRARY DESTINATION ${library_path})
LIBRARY DESTINATION ${library_installation_path}) install(FILES ${header_files} DESTINATION ${include_path}/libclangmm)
install(FILES ${header_files}
DESTINATION ${library_installation_path}/include)

Loading…
Cancel
Save