30 lines
564 B
CMake
30 lines
564 B
CMake
|
add_library(AsioZeroMQ
|
||
|
BasicSocket.h BasicSocket.inl
|
||
|
ErrorCode.h ErrorCode.cpp
|
||
|
Message.h Message.cpp
|
||
|
Options.h
|
||
|
SocketService.h SocketService.cpp
|
||
|
ZeroMQSocket.h
|
||
|
)
|
||
|
|
||
|
target_include_directories(AsioZeroMQ
|
||
|
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}
|
||
|
PUBLIC ${ZeroMQ_INCLUDE_DIR}
|
||
|
)
|
||
|
|
||
|
target_link_directories(AsioZeroMQ
|
||
|
PUBLIC ${ZeroMQ_LIBRARY_DIRS}
|
||
|
)
|
||
|
|
||
|
target_link_libraries(AsioZeroMQ
|
||
|
PUBLIC ${Boost_LIBRARIES}
|
||
|
PUBLIC Universal
|
||
|
PUBLIC ${ZeroMQ_LIBRARIES}
|
||
|
)
|
||
|
|
||
|
if(UNIX)
|
||
|
target_compile_options(AsioZeroMQ
|
||
|
PRIVATE -fPIC
|
||
|
)
|
||
|
endif()
|