2020-05-08 14:11:19 +00:00
|
|
|
if (USE_INTERNAL_POCO_LIBRARY)
|
|
|
|
set (SRCS
|
2021-04-24 19:47:52 +00:00
|
|
|
"${LIBRARY_DIR}/Util/src/AbstractConfiguration.cpp"
|
|
|
|
"${LIBRARY_DIR}/Util/src/Application.cpp"
|
|
|
|
"${LIBRARY_DIR}/Util/src/ConfigurationMapper.cpp"
|
|
|
|
"${LIBRARY_DIR}/Util/src/ConfigurationView.cpp"
|
|
|
|
"${LIBRARY_DIR}/Util/src/FilesystemConfiguration.cpp"
|
|
|
|
"${LIBRARY_DIR}/Util/src/HelpFormatter.cpp"
|
|
|
|
"${LIBRARY_DIR}/Util/src/IniFileConfiguration.cpp"
|
|
|
|
"${LIBRARY_DIR}/Util/src/IntValidator.cpp"
|
|
|
|
"${LIBRARY_DIR}/Util/src/JSONConfiguration.cpp"
|
|
|
|
"${LIBRARY_DIR}/Util/src/LayeredConfiguration.cpp"
|
|
|
|
"${LIBRARY_DIR}/Util/src/LoggingConfigurator.cpp"
|
|
|
|
"${LIBRARY_DIR}/Util/src/LoggingSubsystem.cpp"
|
|
|
|
"${LIBRARY_DIR}/Util/src/MapConfiguration.cpp"
|
|
|
|
"${LIBRARY_DIR}/Util/src/Option.cpp"
|
|
|
|
"${LIBRARY_DIR}/Util/src/OptionCallback.cpp"
|
|
|
|
"${LIBRARY_DIR}/Util/src/OptionException.cpp"
|
|
|
|
"${LIBRARY_DIR}/Util/src/OptionProcessor.cpp"
|
|
|
|
"${LIBRARY_DIR}/Util/src/OptionSet.cpp"
|
|
|
|
"${LIBRARY_DIR}/Util/src/PropertyFileConfiguration.cpp"
|
|
|
|
"${LIBRARY_DIR}/Util/src/RegExpValidator.cpp"
|
|
|
|
"${LIBRARY_DIR}/Util/src/ServerApplication.cpp"
|
|
|
|
"${LIBRARY_DIR}/Util/src/Subsystem.cpp"
|
|
|
|
"${LIBRARY_DIR}/Util/src/SystemConfiguration.cpp"
|
|
|
|
"${LIBRARY_DIR}/Util/src/Timer.cpp"
|
|
|
|
"${LIBRARY_DIR}/Util/src/TimerTask.cpp"
|
|
|
|
"${LIBRARY_DIR}/Util/src/Validator.cpp"
|
|
|
|
"${LIBRARY_DIR}/Util/src/XMLConfiguration.cpp"
|
2020-05-08 14:11:19 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_library (_poco_util ${SRCS})
|
|
|
|
add_library (Poco::Util ALIAS _poco_util)
|
|
|
|
|
2021-04-24 19:47:52 +00:00
|
|
|
target_include_directories (_poco_util SYSTEM PUBLIC "${LIBRARY_DIR}/Util/include")
|
2020-05-08 14:11:19 +00:00
|
|
|
target_link_libraries (_poco_util PUBLIC Poco::JSON Poco::XML)
|
|
|
|
else ()
|
|
|
|
add_library (Poco::Util UNKNOWN IMPORTED GLOBAL)
|
|
|
|
|
|
|
|
find_library (LIBRARY_POCO_UTIL PocoUtil)
|
|
|
|
find_path (INCLUDE_POCO_UTIL Poco/Util/Util.h)
|
|
|
|
set_target_properties (Poco::Util PROPERTIES IMPORTED_LOCATION ${LIBRARY_POCO_UTIL})
|
|
|
|
set_target_properties (Poco::Util PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${INCLUDE_POCO_UTIL})
|
|
|
|
|
|
|
|
message (STATUS "Using Poco::Util: ${LIBRARY_POCO_UTIL} ${INCLUDE_POCO_UTIL}")
|
|
|
|
endif ()
|