Now, this is what I wrote, but it's not working

Please, does someone knows where could be the problem? thx
Note: File FindPocoFoundation.cmake is included in CMakeLists.txt.
FindPocoFoundation.cmake:
- Code: Select all
# - Try to find POCOFoundation library
# Once done, this will define
#
# POCOFoundation_FOUND - system has POCOFoundation
# POCOFoundation_INCLUDE_DIRS - the POCOFoundation include directories
# POCOFoundation_LIBRARIES - link these to use POCOFoundation
#
# See documentation on how to write CMake scripts at
# http://www.cmake.org/Wiki/CMake:How_To_Find_Libraries
include(LibFindMacros)
#libfind_pkg_check_modules(POCOFoundation_PKGCONF pocofoundation)
find_path(POCOFoundation_INCLUDE_DIR
NAMES Poco/Foundation.h
PATHS ${POCOFoundation_PKGCONF_INCLUDE_DIRS}
)
find_library(POCOFoundation_LIBRARY
NAMES pocofoundation
PATHS ${POCOFoundation_PKGCONF_LIBRARY_DIRS}
)
set(POCOFoundation_PROCESS_INCLUDES POCOFoundation_INCLUDE_DIR)
set(POCOFoundation_PROCESS_LIBS POCOFoundation_LIBRARY)
libfind_process(POCOFoundation)
edit: Partialy solved

This doesn't work, but now I don't know how to use packages and wtf is it.
- Code: Select all
libfind_pkg_check_modules(POCOFoundation_PKGCONF pocofoundation)