Limeoats / BigNumber

C++ class for creating and computing arbitrary-length integers
Apache License 2.0
191 stars 43 forks source link

Change OS specific instructions in CMAKE -Install #12

Open paulmcquad opened 3 months ago

paulmcquad commented 3 months ago

CMake needs specific instructions for OS's. I can't get this library working on linux. It needs to be easier to install.

Change to This: else(APPLE) install(TARGETS BigNumber DESTINATION ~/Library/Frameworks/BigNumber/lib) install(FILES src/bignumber.h DESTINATION ~/Library/Frameworks/BigNumber/include)

https://stackoverflow.com/questions/9160335/os-specific-instructions-in-cmake-how-to

Detect Apple MacOS and Detect Unix and Linux:

if(APPLE)

OR:

if(UNIX AND NOT APPLE)

Limeoats commented 3 months ago

Can you please describe the error you're getting? Are you unable to download the contents of the bin folder and link to the .a file?