-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove libinih from codebase and add it as a dependency instead.
- Loading branch information
1 parent
13ecfbc
commit a4164ce
Showing
20 changed files
with
116 additions
and
451 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,6 @@ jobs: | |
run: | | ||
cd build-base_linux | ||
cmake --install . | ||
tree install | ||
- name: Test | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
set(inih_LIBRARY_NAMES "inih" "libinih") | ||
set(inih_inireader_LIBRARY_NAMES "INIReader" "libINIReader") | ||
|
||
find_path(inih_INCLUDE_DIR | ||
NAMES "ini.h" | ||
DOC "inih include directory") | ||
|
||
find_path(inih_inireader_INCLUDE_DIR | ||
NAMES "INIReader.h" | ||
DOC "INIReader include directory") | ||
|
||
find_library(inih_LIBRARY | ||
NAMES ${inih_LIBRARY_NAMES} | ||
DOC "inih library") | ||
|
||
find_library(inih_inireader_LIBRARY | ||
NAMES ${inih_inireader_LIBRARY_NAMES} | ||
DOC "inih library") | ||
|
||
mark_as_advanced(inih_INCLUDE_DIR) | ||
mark_as_advanced(inih_LIBRARY) | ||
mark_as_advanced(inih_inireader_INCLUDE_DIR) | ||
mark_as_advanced(inih_inireader_LIBRARY) | ||
|
||
find_package_handle_standard_args(inih REQUIRED_VARS inih_LIBRARY inih_INCLUDE_DIR) | ||
|
||
if(inih_FOUND) | ||
set(inih_INCLUDE_DIRS "${inih_INCLUDE_DIR}") | ||
set(inih_LIBRARIES "${inih_LIBRARY}") | ||
if(NOT TARGET inih::libinih) | ||
add_library(inih::libinih INTERFACE IMPORTED) | ||
endif() | ||
set_property(TARGET inih::libinih PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${inih_INCLUDE_DIRS}") | ||
set_property(TARGET inih::libinih PROPERTY INTERFACE_LINK_LIBRARIES "${inih_LIBRARIES}") | ||
|
||
set(inih_inireader_INCLUDE_DIRS "${inih_inireader_INCLUDE_DIR}") | ||
set(inih_inireader_LIBRARIES "${inih_inireader_LIBRARY}") | ||
if(NOT TARGET inih::inireader) | ||
add_library(inih::inireader INTERFACE IMPORTED) | ||
endif() | ||
set_property(TARGET inih::inireader PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${inih_inireader_INCLUDE_DIRS}") | ||
set_property(TARGET inih::inireader PROPERTY INTERFACE_LINK_LIBRARIES "${inih_inireader_LIBRARIES}") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.