Add libgit2 library, new mingw32 libraries will be uploaded soon

This commit is contained in:
Eduardo Bart
2012-08-18 14:08:05 -03:00
parent ef9a4c5d04
commit 5e3882f87a
23 changed files with 200 additions and 40 deletions

View File

@@ -176,7 +176,7 @@ if(WIN32)
set(REQUIRED_BOOST_COMPONENTS ${REQUIRED_BOOST_COMPONENTS} thread chrono) # mingw32 does not have std::thread
endif()
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_STATIC_LIBS ${USE_STATIC_LIBS})
find_package(Boost COMPONENTS ${REQUIRED_BOOST_COMPONENTS} REQUIRED)
#find lua
@@ -466,5 +466,19 @@ if(FRAMEWORK_SQL)
set(framework_DEFINITIONS ${framework_DEFINITIONS} -DFW_SQL)
endif()
if(FRAMEWORK_GIT)
find_package(Git2 REQUIRED)
set(framework_INCLUDE_DIRS ${framework_INCLUDE_DIRS} ${GIT2_INCLUDE_DIR})
set(framework_LIBRARIES ${GIT2_LIBRARY} ${framework_LIBRARIES})
set(framework_SOURCES ${framework_SOURCES}
${CMAKE_CURRENT_LIST_DIR}/git/declarations.h
${CMAKE_CURRENT_LIST_DIR}/git/gitrepository.h
${CMAKE_CURRENT_LIST_DIR}/git/gitrepository.cpp
)
set(framework_DEFINITIONS ${framework_DEFINITIONS} -DFW_GIT)
endif()
include_directories(${framework_INCLUDE_DIRS})
add_definitions(${framework_DEFINITIONS})