X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/0aa5d347a234d6a636ae481564ac537c8f32a917..1e8eb98d30459399902534082c88b94bb26bb2e3:/libs/CMakeLists.txt diff --git a/libs/CMakeLists.txt b/libs/CMakeLists.txt index ece4c9a3..59caf2f1 100644 --- a/libs/CMakeLists.txt +++ b/libs/CMakeLists.txt @@ -1,8 +1,10 @@ set ( CMAKE_POSITION_INDEPENDENT_CODE ON ) if ( BUILD_LIB_COMMON ) + find_package ( Iconv REQUIRED ) add_library ( common STATIC common/blockio.cpp common/common.cpp common/strptime.cpp ) target_include_directories ( common PUBLIC common/include ) + target_link_libraries ( common Iconv::Iconv ) endif ( BUILD_LIB_COMMON ) if ( BUILD_LIB_CONFFILES ) @@ -32,9 +34,10 @@ if ( BUILD_LIB_IBPP ) endif ( BUILD_LIB_IBPP ) if ( BUILD_LIB_JSON ) + find_package ( YAJL REQUIRED ) add_library ( json STATIC json/generator.cpp json/parser.cpp ) target_include_directories ( json PUBLIC json/include ) - target_link_libraries ( json common ) + target_link_libraries ( json common YAJL::YAJL ) endif ( BUILD_LIB_JSON ) if ( BUILD_LIB_LOGGER )