c++ - Include cpp-netlib with CLion and Make on macOS -


i'm new clion, cmake , macos @ need little bit of while trying include cppnetlib clion project.

i started out creating new clion project gave me new cmakelists.txt edited include boost well:

cmake_minimum_required(version 3.7) project(myapp)  set(cmake_cxx_standard 11)  set(source_files main.cpp) add_executable(myapp ${source_files})  find_package(boost 1.63.0 required) include_directories(${boost_include_dir}) target_link_libraries(dxcheck ${boost_libraries}) 

i've installed boost through homebrew, did not find package cppnetlib homebrew downloaded cppnetlib , placed in /usr/local/cellar/cpp-netlib. now, when follow tutorial on page , put

set (cmake_prefix_path ${cmake_prefix_path} /usr/local/cellar/cpp-netlib) find_package (cppnetlib 0.12.0 required) include_directories (${cppnetlib_include_dirs}) target_link_libraries (myapp ${cppnetlib_libraries}) 

into cmakelists.txt, following output:

-- boost version: 1.63.0 cmake error @ cmakelists.txt:14 (find_package):   not providing "findcppnetlib.cmake" in cmake_module_path project   has asked cmake find package configuration file provided   "cppnetlib", cmake did not find one.    not find package configuration file provided "cppnetlib"   (requested version 0.11.0) of following names:      cppnetlibconfig.cmake     cppnetlib-config.cmake    add installation prefix of "cppnetlib" cmake_prefix_path or set   "cppnetlib_dir" directory containing 1 of above files.  if   "cppnetlib" provides separate development package or sdk, sure has   been installed. 

i've done research finding packages achieve was able include cppnetlib manually adding include path cmakelists.txt got error saying compiler not find headers located inside "deps" folder in cpp-netlib.

i know want know how include package cppnetlib clion project using cmake. using clion 2017.1, macos sierra , think clion using cmake 3.7.


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -