sslnjz / geodesy

Libraries of geodesy functions implemented in c++
MIT License
2 stars 1 forks source link

Please provide some help/tutorial how to build it with CMake #2

Open SkybuckFlying opened 1 year ago

SkybuckFlying commented 1 year ago

Preferably for Windows system and Visual Studio...

I tried it, current it gives errors:

cmake -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON

" Make Error at test/CMakeLists.txt:39 (find_package): Could not find a package configuration file provided by "geodesy" with any of the following names:

geodesyConfig.cmake geodesy-config.cmake

Add the installation prefix of "geodesy" to CMAKE_PREFIX_PATH or set "geodesy_DIR" to a directory containing one of the above files. If "geodesy" provides a separate development package or SDK, be sure it has been installed. "

I don't know CMake well enough to do it... it has like billions of pages of documentation...

SkybuckFlying commented 1 year ago

Tried renaming the file geodesy-config.cmake.in to geodesy-config.cmake still gives problems:

CMake Error at geodesy-config.cmake:29: Parse error. Expected a command name, got unquoted argument with text "@PACKAGE_INIT@". Call Stack (most recent call first): test/CMakeLists.txt:39 (find_package)