1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 11:22:45 +01:00

Merge pull request #87 from AMDmi3/inih-as-submodule

Use inih as git submodule
This commit is contained in:
Daniel Evans 2016-05-25 20:15:33 +01:00
commit c1940ab566
3 changed files with 7 additions and 14 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "external/inih"]
path = external/inih
url = https://github.com/benhoyt/inih.git

View File

@ -1,22 +1,11 @@
###### External Project: inih
include(ExternalProject)
SET(INIH_REPOSITORY https://github.com/benhoyt/inih.git)
SET(INIH_PREFIX_DIR ${EXTERNAL_PREFIX}/inih)
ExternalProject_Add(inih-repository
PREFIX ${INIH_PREFIX_DIR}
# Do nothing, we just need the files.
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
GIT_REPOSITORY ${INIH_REPOSITORY})
SET(INIH_PREFIX_DIR ${PROJECT_SOURCE_DIR}/external/inih)
SET(INIH_SOURCES
${INIH_PREFIX_DIR}/src/inih-repository/ini.c)
set_source_files_properties(${INIH_SOURCES} PROPERTIES GENERATED TRUE)
${INIH_PREFIX_DIR}/ini.c)
add_library(inih
${INIH_SOURCES})
add_dependencies(inih inih-repository)
target_include_directories(inih INTERFACE SYSTEM ${INIH_PREFIX_DIR}/src/inih-repository/)
target_include_directories(inih INTERFACE SYSTEM ${INIH_PREFIX_DIR})

1
external/inih vendored Submodule

@ -0,0 +1 @@
Subproject commit 0c3f8ea80ca2c8be8995a0b7b4e84af1641a4dd2