How to import zeromq libraries in cmake?

后端 未结 3 879
长发绾君心
长发绾君心 2021-02-05 18:53

I\'m just starting to learn how to work with zeromq libraries and using them in different C++ projects. The sample code that I wrote (actually copied from there tutorials)is thi

3条回答
  •  后悔当初
    2021-02-05 19:33

    This works as well

     cmake_minimum_required(VERSION 3.6)
     project(test)     
     add_executable(c main.cpp)
     target_link_libraries(c zmq)
    

提交回复
热议问题