0
cmake_minimum_required(VERSION 3.23.1)

project(Poco_client VERSION 0.1.0)

file(GLOB all_SRCS
    "${PROJECT_SOURCE_DIR}/src/main.cpp"
)


add_executable(${PROJECT_NAME} ${all_SRCS})

set( Poco "C:/Poco/Foundation/include")
target_include_directories(${PROJECT_NAME} PRIVATE ${Poco})
message(STATUS "Message was include libraries :" ${Poco} )


set(Net "C:/Poco/Net/include")
target_include_directories(${PROJECT_NAME} PRIVATE ${Net})
message(STATUS "Message was include libraries :" ${Net} )

In main.cpp i included Net Libraries

#include <Poco/Net/SocketAddress.h>
#include <Poco/Net/StreamSocket.h>
#include <Poco/Net/SocketStream.h>

I am running code based on Cmakefiles.tcxt Every time it will giving linker error.

LINK : fatal error LNK1104: cannot open file 'PocoFoundationd.lib' [C:\fwdcheckerboardandyaml\poco_server\build\Poco_se rver.vcxproj]

In my poco downloads there is no lib files.

Then how can I add Net to poco libraries in CMakeLists.txt.

0 Answers0