CMakeLists.txt 497 Bytes
Newer Older
1
file(GLOB SRC_EXAMPLES *.c *.h)
2

3
add_executable(lg2 ${SRC_EXAMPLES})
4
set_target_properties(lg2 PROPERTIES C_STANDARD 90)
5

6
# Ensure that we do not use deprecated functions internally
7
add_definitions(-DGIT_DEPRECATE_HARD)
8

9 10 11
target_include_directories(lg2 PRIVATE ${LIBGIT2_INCLUDES} ${LIBGIT2_DEPENDENCY_INCLUDES})
target_include_directories(lg2 SYSTEM PRIVATE ${LIBGIT2_SYSTEM_INCLUDES})

12 13 14 15 16
if(WIN32 OR ANDROID)
	target_link_libraries(lg2 git2)
else()
	target_link_libraries(lg2 git2 pthread)
endif()