From d4bb47a3a73430259ff7d108bb7238b3c695ba57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Lien=20Sell=C3=A6g?= Date: Tue, 21 Jul 2015 11:25:44 +0200 Subject: [PATCH] Edits to make make install work for juci --- CMakeLists.txt | 3 ++- src/CMakeLists.txt | 6 ++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 99ac894..8ad95fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,8 @@ cmake_minimum_required (VERSION 2.8.4) set(project_name clangmm) 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) set(Boost_USE_STATIC_LIBS "YES") diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 478c921..3879c84 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -48,7 +48,5 @@ add_library(${project_name} SHARED ${header_files} ${cc_files}) include_directories(${LIBCLANG_INCLUDE_DIRS}) target_link_libraries(${project_name} ${LIBCLANG_LIBRARIES}) -install(TARGETS ${project_name} - LIBRARY DESTINATION ${library_installation_path}) -install(FILES ${header_files} - DESTINATION ${library_installation_path}/include) +install(TARGETS ${project_name} LIBRARY DESTINATION ${library_path}) +install(FILES ${header_files} DESTINATION ${include_path}/libclangmm)