cmake_minimum_required(VERSION 3.17)
project(BeautyCamera)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

#opencv
find_package(OpenCV)
include_directories(${OpenCV_INCLUDE_DIRS})
#gender
find_package(Poco CONFIG REQUIRED Util Data XML Zip)

#openssl
#find_package(OpenSSL REQUIRED)
#include_directories(/usr/local/Cellar/openssl@1.1/1.1.1i/include/)

aux_source_directory(. SRCS)
include_directories(/usr/local/include)
link_directories(/usr/local/lib)
#add_executable(main f_BeautyCamera.cpp ${SRCS})
#target_link_libraries(main ${OpenCV_LIBS} ${Poco_LIBRARIES})
add_executable(gender gender.cpp ${SRCS})
target_link_libraries(gender ${OpenCV_LIBS} ${Poco_LIBRARIES})
#add_executable(beautyIris f_BeautyIris.cpp ${SRCS})
#target_link_libraries(beautyIris ${OpenCV_LIBS} ${Poco_LIBRARIES} PocoFoundation PocoNet PocoUtil ${dlib_LIBRARIES} ${OPENSSL_CRYPTO_LIBRARY})
#target_link_libraries(beautyIris ${OpenCV_LIBS} ${Poco_LIBRARIES} libdlib.a X11 pthread)

#target_link_libraries(helloworld
#        ${Poco_LIBRARIES}
#        ${HIREDIS_LIB}
#        ${REDIS_PLUS_PLUS_LIB}
#        nlohmann_json::nlohmann_json
#        rdkafka++)