![]() OK ANYway, THIS IS THE ERROR:ĬMake Error at CMakeLists.txt:8 (add_executable):No SOURCES given to target: TutorialĪ tutorial should not have an error in the first project! with absolutely no answer to fix it. I wanted something more simple and straight forward i guess. This flow is recommended from v0.16 where these functions were introduced. The recommended flow to use cmake-conan is successively calling to conancmakeconfigure, conancmakeautodetect and conancmakeinstall. I have to say i hate this tutorial, I understand they are not just giving a tutorial but also forcing you to learn the language by reading about each one as presented. There are different functions you can use from your CMake project to use Conan from there. # TODO 9: Use target_include_directories to include $Ĭonfigure and generate in Cmake 3.2532 gives this error and i cant find how to fix it. # TODO 8: Use configure_file to configure and copy TutorialConfig.h.in to # TODO 7: Set the project version number as 1.0 in the above project command In this example the cmake generator would generate cmake files. # and the variable CMAKE_CXX_STANDARD_REQUIRED to True Conan is an open source, decentralized and multi-platform package manager to create and. ![]() # TODO 6: Set the variable CMAKE_CXX_STANDARD to 11 # Hint: Be sure to specify the source file as tutorial.cxx Conan has generated a conanbuildinfo.cmake file (corresponding with the cmake generator) with all the information about the libcurl dependency and all the transitive ones, in this case, OpenSSL and ZLib, and some macros we can call to ease the task of linking with our dependencies. # TODO 3: Add an executable called Tutorial to the project ![]() # TODO 2: Create a project named Tutorial Known exceptions are: Pure distutils packages installed with python setup.py install. # TODO 1: Set the minimum required version of CMake to be 3.10 pip is able to uninstall most installed packages. In the near future these new generators will be introduced in the conan-center-index. conan-io / conan Public Notifications Fork 826 Star 6.6k Code Issues 2. Building on this evolution we are pleased to present a new unified way to create Conan packages with CMake. Im just following the tutorial here, the fist one! The CMake ecosystem and Conan have continually evolved since their conception. I dont know how to 'flair' as solved but this is solved.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |