file(GLOB sources "*.c") file(GLOB headers "*.h") add_library(libcrypto777 ${sources} ${headers}) target_compile_definitions(libcrypto777 PRIVATE USE_STATIC_NANOMSG) target_link_libraries(libcrypto777 PUBLIC curl ${NANOMSG_LIBRARY})