# # nanomsg/CMakeLists.txt -- # cmake_minimum_required(VERSION 2.6) project(pipeline C) find_package(PkgConfig) pkg_check_modules(LIBNANOMSG REQUIRED libnanomsg) include_directories(${LIBNANOMSG_INCLUDE_DIRS}) link_directories(${LIBNANOMSG_LIBRARY_DIRS}) add_executable(pipeline pipeline.c) target_link_libraries(pipeline ${LIBNANOMSG_LIBRARIES}) add_executable(reqrep reqrep.c) target_link_libraries(reqrep ${LIBNANOMSG_LIBRARIES}) add_executable(pubsub pubsub.c) target_link_libraries(pubsub ${LIBNANOMSG_LIBRARIES}) if(CMAKE_COMPILER_IS_GNUCC) add_definitions(--std=c99 -Wall) endif()