Recipe info
TSPA
2023-10-09

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
cspice/0067

Using cspice

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
cspice/0067
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("cspice/0067")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): cspice
  • CMake target name(s): cspice::cspice
  • pkg-config file name(s): cspice.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(cspice REQUIRED)
# ...
target_link_libraries(YOUR_TARGET cspice::cspice)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the cspice homepage listed above:

#include "SpiceCK.h"
#include "SpiceCel.h"
#include "SpiceDAS.h"
#include "SpiceDLA.h"
#include "SpiceDSK.h"
#include "SpiceDtl.h"
#include "SpiceEK.h"
#include "SpiceEll.h"
#include "SpiceErr.h"
#include "SpiceFrm.h"
#include "SpiceGF.h"
#include "SpiceOccult.h"
#include "SpiceOsc.h"
#include "SpicePln.h"
#include "SpiceSCLK.h"
#include "SpiceSPK.h"
#include "SpiceSrf.h"
#include "SpiceUsr.h"
#include "SpiceZad.h"
#include "SpiceZdf.h"
#include "SpiceZfc.h"
#include "SpiceZim.h"
#include "SpiceZmc.h"
#include "SpiceZpl.h"
#include "SpiceZpr.h"
#include "SpiceZrnm.h"
#include "SpiceZst.h"
#include "f2c.h"
#include "f2cMang.h"
#include "fio.h"
#include "fmt.h"
#include "fp.h"
#include "lio.h"
#include "rawio.h"
#include "signal1.h"
#include "zzalloc.h"
#include "zzerror.h"