-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new colorer by cycleg plus some changes (touch #692, close #648, touch #596, touch #531, touch #286)
- Loading branch information
Showing
589 changed files
with
21,513 additions
and
47,085 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
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,30 @@ | ||
# - Find minizip | ||
# Find the native MINIZIP includes and library | ||
# | ||
# MINIZIP_INCLUDE_DIR - where to find minizip.h, etc. | ||
# MINIZIP_LIBRARIES - List of libraries when using minizip. | ||
# MINIZIP_FOUND - True if minizip found. | ||
|
||
|
||
IF (MINIZIP_INCLUDE_DIR) | ||
# Already in cache, be silent | ||
SET(MINIZIP_FIND_QUIETLY TRUE) | ||
ENDIF (MINIZIP_INCLUDE_DIR) | ||
|
||
FIND_PATH(MINIZIP_INCLUDE_DIR zip.h PATH_SUFFIXES minizip) | ||
|
||
SET(MINIZIP_NAMES minizip) | ||
FIND_LIBRARY(MINIZIP_LIBRARY NAMES ${MINIZIP_NAMES} ) | ||
|
||
# handle the QUIETLY and REQUIRED arguments and set MINIZIP_FOUND to TRUE if | ||
# all listed variables are TRUE | ||
INCLUDE(FindPackageHandleStandardArgs) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(MiniZip DEFAULT_MSG MINIZIP_LIBRARY MINIZIP_INCLUDE_DIR) | ||
|
||
IF(MINIZIP_FOUND) | ||
SET( MINIZIP_LIBRARIES ${MINIZIP_LIBRARY} ) | ||
ELSE(MINIZIP_FOUND) | ||
SET( MINIZIP_LIBRARIES ) | ||
ENDIF(MINIZIP_FOUND) | ||
|
||
MARK_AS_ADVANCED( MINIZIP_LIBRARY MINIZIP_INCLUDE_DIR ) |
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,33 @@ | ||
# This module try to find spdlog lib | ||
# Once done this will define | ||
# | ||
# Spdlog_FOUND - system has spdlog lib | ||
# SPDLOG_INCLUDE_DIR - the spdlog include directory | ||
# | ||
# Available targets: | ||
# Spdlog::Spdlog | ||
|
||
find_path(SPDLOG_INCLUDE_DIR spdlog/spdlog.h | ||
PATHS | ||
ENV SPDLOG_ROOT | ||
ENV SPDLOG_INCLUDE_DIR | ||
${SPDLOG_ROOT} | ||
/usr | ||
/usr/local | ||
$ENV{HOME}/.local | ||
PATH_SUFFIXES | ||
include | ||
) | ||
mark_as_advanced(SPDLOG_INCLUDE_DIR) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(Spdlog | ||
REQUIRED_VARS SPDLOG_INCLUDE_DIR | ||
) | ||
|
||
if(Spdlog_FOUND AND NOT TARGET Spdlog::Spdlog) | ||
add_library(Spdlog::Spdlog INTERFACE IMPORTED) | ||
set_target_properties(Spdlog::Spdlog PROPERTIES | ||
INTERFACE_INCLUDE_DIRECTORIES "${SPDLOG_INCLUDE_DIR}" | ||
) | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# - Find Xerces-C | ||
# The following setings are defined | ||
# XERCESC_ROOT_DIR, the root of the include and lib directory | ||
# XERCESC_INCLUDE_DIR, the full path of the include dir (ADVANCED) | ||
# XERCESC_LIBRARIES, the name of the xerces-c library (ADVANCED) | ||
##### | ||
# Find Xerces-C | ||
|
||
# taken from http://cartwheel.idyll.org/browser/trunk/FindXercesC.cmake | ||
|
||
set(XERCESC_FIND_QUIETLY FALSE) | ||
|
||
# Look for a root installation | ||
FIND_PATH(XERCESC_ROOT_DIR include/xercesc/parsers/SAXParser.hpp | ||
HINTS ENV XERCESC_ROOT | ||
/usr | ||
|
||
DOC "The root of an installed xerces-c installation" | ||
) | ||
|
||
# try to find the header | ||
FIND_PATH(XERCESC_INCLUDE_DIR xercesc/parsers/SAXParser.hpp | ||
${XERCESC_ROOT_DIR}/include | ||
HINTS ENV XERCESC_ROOT | ||
/usr/include | ||
/usr/local/include | ||
) | ||
|
||
# Find the library | ||
FIND_LIBRARY(XERCESC_LIBRARY | ||
NAMES xerces-c | ||
HINTS ENV XERCESC_ROOT | ||
PATHS | ||
${XERCESC_ROOT_DIR}/lib | ||
/usr/lib | ||
/usr/local/lib | ||
DOC "The name of the xerces-c library" | ||
) | ||
IF (XERCESC_ROOT_DIR) | ||
IF (XERCESC_INCLUDE_DIR AND XERCESC_LIBRARY) | ||
SET (XERCESC_FOUND TRUE) | ||
SET (XERCESC_LIBRARIES "${XERCESC_LIBRARY}") | ||
# FIXME: There should be a better way of handling this? | ||
# FIXME: How can we test to see if the lib dir isn't | ||
# FIXME: one of the default dirs? | ||
LINK_DIRECTORIES(${XERCESC_ROOT_DIR}/lib) | ||
ENDIF (XERCESC_INCLUDE_DIR AND XERCESC_LIBRARY) | ||
ENDIF (XERCESC_ROOT_DIR) | ||
|
||
IF (XERCESC_FOUND) | ||
IF (NOT XERCESC_FIND_QUIETLY) | ||
MESSAGE (STATUS "Found Xerces-C: ${XERCESC_LIBRARY}") | ||
ENDIF (NOT XERCESC_FIND_QUIETLY) | ||
ELSE (XERCESC_FOUND) | ||
IF (XERCESC_FIND_REQUIRED) | ||
MESSAGE(FATAL_ERROR "Could not find Xerces-C") | ||
ENDIF (XERCESC_FIND_REQUIRED) | ||
ENDIF (XERCESC_FOUND) | ||
|
||
MARK_AS_ADVANCED( | ||
XERCESC_INCLUDE_DIR | ||
XERCESC_LIBRARY | ||
) |
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 @@ | ||
find_path(fmt_INCLUDE_DIR NAMES fmt/format.h) | ||
|
||
if(fmt_INCLUDE_DIR) | ||
set(_fmt_version_file "${fmt_INCLUDE_DIR}/fmt/core.h") | ||
if(NOT EXISTS "${_fmt_version_file}") | ||
set(_fmt_version_file "${fmt_INCLUDE_DIR}/fmt/format.h") | ||
endif() | ||
if(EXISTS "${_fmt_version_file}") | ||
# parse "#define FMT_VERSION 40100" to 4.1.0 | ||
file(STRINGS "${_fmt_version_file}" fmt_VERSION_LINE | ||
REGEX "^#define[ \t]+FMT_VERSION[ \t]+[0-9]+$") | ||
string(REGEX REPLACE "^#define[ \t]+FMT_VERSION[ \t]+([0-9]+)$" | ||
"\\1" fmt_VERSION "${fmt_VERSION_LINE}") | ||
foreach(ver "fmt_VERSION_PATCH" "fmt_VERSION_MINOR" "fmt_VERSION_MAJOR") | ||
math(EXPR ${ver} "${fmt_VERSION} % 100") | ||
math(EXPR fmt_VERSION "(${fmt_VERSION} - ${${ver}}) / 100") | ||
endforeach() | ||
set(fmt_VERSION | ||
"${fmt_VERSION_MAJOR}.${fmt_VERSION_MINOR}.${fmt_VERSION_PATCH}") | ||
endif() | ||
endif() | ||
|
||
find_library(fmt_LIBRARY NAMES fmt) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(fmt | ||
REQUIRED_VARS fmt_INCLUDE_DIR fmt_LIBRARY | ||
VERSION_VAR fmt_VERSION) | ||
mark_as_advanced( | ||
fmt_INCLUDE_DIR | ||
fmt_LIBRARY | ||
fmt_VERSION_MAJOR | ||
fmt_VERSION_MINOR | ||
fmt_VERSION_PATCH | ||
fmt_VERSION_STRING) | ||
|
||
if(fmt_FOUND AND NOT (TARGET fmt::fmt)) | ||
add_library(fmt::fmt UNKNOWN IMPORTED) | ||
set_target_properties(fmt::fmt PROPERTIES | ||
INTERFACE_INCLUDE_DIRECTORIES "${fmt_INCLUDE_DIR}" | ||
IMPORTED_LINK_INTERFACE_LANGUAGES "CXX" | ||
IMPORTED_LOCATION "${fmt_LIBRARY}") | ||
endif() |
Oops, something went wrong.