Commit 032db4d0 by Peter Drahoš Committed by Vicent Marti

Reflect the recent changes in header organization (CMake)

parent 5b8bb8e7
...@@ -16,7 +16,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6) ...@@ -16,7 +16,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
# Find required dependencies # Find required dependencies
FIND_PACKAGE(ZLIB REQUIRED) FIND_PACKAGE(ZLIB REQUIRED)
INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIR} ${PTHREAD_INCLUDE_DIR} src) INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIR} src)
# Try finding openssl # Try finding openssl
FIND_PACKAGE(OpenSSL) FIND_PACKAGE(OpenSSL)
...@@ -29,7 +29,7 @@ ENDIF () ...@@ -29,7 +29,7 @@ ENDIF ()
# Installation paths # Installation paths
SET(INSTALL_BIN bin CACHE PATH "Where to install binaries to.") SET(INSTALL_BIN bin CACHE PATH "Where to install binaries to.")
SET(INSTALL_LIB lib CACHE PATH "Where to install libraries to.") SET(INSTALL_LIB lib CACHE PATH "Where to install libraries to.")
SET(INSTALL_INC include/git CACHE PATH "Where to install headers to.") SET(INSTALL_INC include CACHE PATH "Where to install headers to.")
# Build options # Build options
OPTION (BUILD_SHARED_LIBS "Build Shared Library (OFF for Static)" ON) OPTION (BUILD_SHARED_LIBS "Build Shared Library (OFF for Static)" ON)
...@@ -82,7 +82,8 @@ INSTALL(TARGETS git2 ...@@ -82,7 +82,8 @@ INSTALL(TARGETS git2
LIBRARY DESTINATION ${INSTALL_LIB} LIBRARY DESTINATION ${INSTALL_LIB}
ARCHIVE DESTINATION ${INSTALL_LIB} ARCHIVE DESTINATION ${INSTALL_LIB}
) )
INSTALL(FILES ${SRC_H} DESTINATION ${INSTALL_INC} ) INSTALL(DIRECTORY src/git2 DESTINATION ${INSTALL_INC} )
INSTALL(FILES src/git2.h DESTINATION ${INSTALL_INC} )
# Tests # Tests
IF (BUILD_TESTS) IF (BUILD_TESTS)
......
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