CMakeLists.txt

Branch


Log

Author Commit Date CI Message
Steffen Jaeckel 6929c136 2022-03-23T17:50:22 add C89 support for CMake Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
Steffen Jaeckel c7686f24 2022-10-02T12:58:53 slightly edit, update and run typos.sh Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
Didiet ade13cfc 2022-04-17T05:02:40 Add Support For WATCOM compiler flags
Steffen Jaeckel 72ce1e53 2022-03-23T12:21:27 rename cmake project to `libtommath` Instead of prepending multiple times 'lib', change the target-properties `OUTPUT_NAME` once. This also improves cpack package names to be more distro-style. Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
Steffen Jaeckel d31801fe 2022-03-22T15:39:00 take review comments into account * protect GCC-specific stuff * use `list(APPEND...)` * use CMake-style way to choose whether LTO should/can be done or not * only install public header, not all * add correct `install` option for DLL's on Windows * use correct folder for .pc files * check if `uname` exists & add support for FreeBSD Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
Steffen Jaeckel 0b98bc71 2022-03-22T15:35:55 split up into two CMakeLists.txt one for the library, one for the demo Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
Steffen Jaeckel 22dfda7e 2022-02-27T12:56:09 further simplifications/improvements * bump to CMake 3.10 * only support the CMake standard way to define variables via `-DFOO=On` and not via the environment * clean-up switches only used for unit tests * mingw's ID is "GNU", so we match on the full compiler name instead * use CMake variables instead of environment variables via `$ENV{<stuff>}` * unconditionally set {C,LD}FLAGS passed by user * clean-up duplicate CPack keys + add FreeBSD config * store pack files in distro-specific paths * use default names where possible * use `CMAKE_BUILD_TYPE`-style variables instead of our own flags * set default `CMAKE_BUILD_TYPE` to "Release" Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
czurnieden ba74457f 2022-03-02T22:28:49 Build and install libtommath.pc
Steffen Jaeckel cb8f2128 2022-02-21T11:18:52 add SPDX identifiers Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
Steffen Jaeckel 41574fab 2022-02-21T10:51:14 simplify what was ported from the makefiles * remove some of the complicated logic. The additional warnings always make sense. CMake uses the state of `BUILD_SHARED_LIBS` to determine the library target type. Also remove the comment regarding building shared and static at the same time, as usually that's done as necessary by the user. * append user-defined {C,LD}FLAGS instead of preprending - we expect them to know what they do, so they can override our defaults * use target_{compile,link}_options() instead of setting variables Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
czurnieden 391e47d1 2022-02-20T08:28:34 Made "test" work with shared lib, started gathering environment variables for CFLAGS
Steffen Jaeckel e1788a82 2022-02-17T18:06:19 allow unit tests in shared library builds The test sources must be compiled with a special define and require optimisation in order to be able to run. Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
Adrian Antonana 0a370845 2022-02-19T14:37:06 cmake: add missing LIBRARY DESTINATION in install targets
Adrian Antonana cc8614ab 2022-02-19T12:18:20 cmake: define BUILD_SHARED_LIBS option... in addition to be able to pass it on cmake invokation tools like ccmake et al. will show it as a configurable option
Adrian Antonana 3c94017d 2019-12-09T16:12:38 cmake: add cpack for generating packages
Adrian Antonana 6da9d1a9 2019-12-09T16:08:59 cmake: rename test target fixes cmake (v3.10.2) error under ubuntu 18.04 due to reserved target name
Adrian Antonana 019c3dcc 2019-12-09T13:51:43 cmake: add cmake lists file