2019-10-25 23:46:10 +02:00
|
|
|
#
|
|
|
|
# Author: Benjamin Sergeant
|
|
|
|
# Copyright (c) 2019 Machine Zone, Inc. All rights reserved.
|
|
|
|
#
|
2020-11-16 06:08:45 +01:00
|
|
|
include(CheckCSourceCompiles)
|
|
|
|
|
|
|
|
check_c_source_compiles("#include <regex>
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
const std::regex dsnRegex;
|
|
|
|
std::smatch group;
|
|
|
|
std::regex_match(std::string(), group, dsnRegex);
|
|
|
|
return 0;
|
|
|
|
}"
|
|
|
|
HAVE_STD_REGEX)
|
2019-10-25 23:46:10 +02:00
|
|
|
|
|
|
|
set (IXSENTRY_SOURCES
|
|
|
|
ixsentry/IXSentryClient.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set (IXSENTRY_HEADERS
|
|
|
|
ixsentry/IXSentryClient.h
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(ixsentry STATIC
|
|
|
|
${IXSENTRY_SOURCES}
|
|
|
|
${IXSENTRY_HEADERS}
|
|
|
|
)
|
|
|
|
|
2020-09-30 23:24:04 +02:00
|
|
|
find_package(JsonCpp)
|
|
|
|
if (NOT JSONCPP_FOUND)
|
|
|
|
set(JSONCPP_INCLUDE_DIRS ../third_party/jsoncpp)
|
|
|
|
endif()
|
|
|
|
|
2019-10-25 23:46:10 +02:00
|
|
|
set(IXSENTRY_INCLUDE_DIRS
|
|
|
|
.
|
2019-10-26 20:47:08 +02:00
|
|
|
..
|
2020-09-30 23:24:04 +02:00
|
|
|
../ixcore
|
|
|
|
${JSONCPP_INCLUDE_DIRS})
|
2019-10-25 23:46:10 +02:00
|
|
|
|
|
|
|
target_include_directories( ixsentry PUBLIC ${IXSENTRY_INCLUDE_DIRS} )
|
2020-11-16 06:08:45 +01:00
|
|
|
|
|
|
|
if (HAVE_STD_REGEX)
|
|
|
|
target_compile_definitions( ixsentry PUBLIC HAVE_STD_REGEX=1 )
|
|
|
|
endif()
|