cmake_minimum_required (VERSION 3.13.4) project (VOLGIT) if( NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Debug") endif( NOT CMAKE_BUILD_TYPE) include_directories(${CMAKE_SOURCE_DIR}) set(SOURCES git_part.c volgit.c ) add_executable(volgit ${SOURCES}) target_link_libraries(volgit git2)