Skip to content

Instantly share code, notes, and snippets.

@g0ddest
Last active August 13, 2016 05:33
Show Gist options
  • Save g0ddest/ac250190ac4dcf1fdf9e6af915872b49 to your computer and use it in GitHub Desktop.
Save g0ddest/ac250190ac4dcf1fdf9e6af915872b49 to your computer and use it in GitHub Desktop.
cmake_minimum_required(VERSION 3.6)
project(cmr_fuse)
find_package(CURL)
find_library(JANSSON_LIBRARY NAMES jansson
PATHS /usr/lib /usr/local/lib /usr/include /usr/local/include )
set(JANSSON_LIBRARIES ${JANSSON_LIBRARY} )
set(JANSSON_INCLUDE_DIRS ${JANSSON_INCLUDE_DIR} )
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra")
set(STATIC_DEPS
${CURL_LIBRARIES}
${JANSSON_LIBRARY}
)
set(SOURCE_FILES
cmr-fuse.c
cmrapi.c
cmrapi.h
list.c
list.h)
add_executable(cmr_fuse ${SOURCE_FILES})
target_link_libraries(cmr_fuse
${CURL_LIBRARIES}
${JANSSON_LIBRARY}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment