CMakeLists.txt 425 Bytes
Newer Older
1
INCLUDE_DIRECTORIES(${LIBGIT2_INCLUDES})
2
INCLUDE_DIRECTORIES(SYSTEM ${LIBGIT2_SYSTEM_INCLUDES})
3

4
FILE(GLOB LG2_SOURCES *.c *.h)
5 6
ADD_EXECUTABLE(lg2 ${LG2_SOURCES})
SET_TARGET_PROPERTIES(lg2 PROPERTIES C_STANDARD 90)
7

8 9 10
# Ensure that we do not use deprecated functions internally
ADD_DEFINITIONS(-DGIT_DEPRECATE_HARD)

11
IF(WIN32 OR ANDROID)
12
	TARGET_LINK_LIBRARIES(lg2 git2)
13
ELSE()
14
	TARGET_LINK_LIBRARIES(lg2 git2 pthread)
15
ENDIF()