8000 GitHub - gitplcc/libsofa: CMake support for IAU SOFA library
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

gitplcc/libsofa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libsofa

"CMake ready" repository that integrates UAI SOFA C library in CMake build system.

It supports:

  • Compiling library as dynamic or static.
  • Including library in the app tree (i.e.: /external/libsofa),
  • or building & installing the library in its own user directory and registering it in user local CMake registry,
  • or building, installing and registering library system wide.

Using SOFA::SOFA target with link_libraries command adds all SOFA library needed include directories and dependencies to user targets.

myapp.c

#include <libsofa/sofa.h>

void main(int argc, char *argv)
{
...
}
CMakeLists.txt

find_package(SOFA REQUIRED) # library built & installed in its own directory or system wide
- or -
add_subdirectory(external/libsofa) # library in app source tree

...

add_executable(myapp myapp.c)
link_libraries(myapp SOFA::SOFA)

About

CMake support for IAU SOFA library

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

0