www.ginac.de Git - ginac.git/atom - ginsh/CMakeLists.txt history GiNaC -- a C++ library for symbolic computations https://www.ginac.de/ginac.git/?p=ginac.git git service static/git-favicon.png static/git-logo.png 2020-08-28T15:15:31Z gitweb Use "modern" CMake facilities to manage includes and libs 2019-12-18T10:52:17Z Alexey Sheplyakov asheplyakov@altlinux.org Alexey Sheplyakov asheplyakov@altlinux.org 2019-12-18T10:52:17Z https://www.ginac.de/ginac.git/?p=ginac.git;a=commitdiff;h=4f71d7035d32e8f74d9b13e0d6a9c0ab4a58062d
Use "modern" CMake facilities to manage includes and libs

* Use target_link_libraries to specify dependencies (include paths,
  compiler options, etc)

* Export targets and provide `ginac-config.cmake` so the following
  `CMakeLists.txt` is enough to build a program using GiNaC:

    cmake_minimum_required(VERSION 3.1)
    project(foo)
    find_package(ginac REQUIRED)
    add_executable(foo foo.cpp)
    target_link_libraries(foo PRIVATE ginac::ginac)

* GiNaC can be included as a (CMake) subproject. One can put GiNaC
  sources (either from git or a tarball) into a subdirectory (say,
  `ginac`) and use the following CMakeLists.txt to build everything:

    cmake_minimum_required(VERSION 3.1)
    project(foo)
    add_subdirectory(ginac)
    add_executable(foo foo.cpp)
    target_link_libraries(foo PRIVATE ginac::ginac)
  • [D] ginsh/CMakeLists.txt
build: accept both python 3 and python 2 2020-08-23T07:28:07Z Alexey Sheplyakov asheplyakov@altlinux.org Alexey Sheplyakov asheplyakov@altlinux.org 2020-08-23T07:28:07Z https://www.ginac.de/ginac.git/?p=ginac.git;a=commitdiff;h=8a4e28dc8121e50d987e888f9688412e1d3ee663
build: accept both python 3 and python 2

This makes building GiNaC a bit easier for users of "old" distributions
where python 3 is not installed by default (Ubuntu 16.04), or even not
available (CentOS 7).

Scripts themselves work just fine with python 2.7 and python 3.x, so
only minor changes to CMakeLists.txt are required (autotools scripts
already handle python2/3)
  • [D] ginsh/CMakeLists.txt
Convert shebangs to python3. 2019-09-10T21:29:07Z Richard Kreckel kreckel@ginac.de Richard Kreckel kreckel@ginac.de 2019-09-10T21:29:07Z https://www.ginac.de/ginac.git/?p=ginac.git;a=commitdiff;h=ab655d5afacd562f817cfc4ca821ab61c7de2188
Convert shebangs to python3.

PEP 394 does not require the python command to be installed.
  • [D] ginsh/CMakeLists.txt
Make compile_ex() work with CMake. 2015-04-14T20:50:31Z Martin Vala mvala@saske.sk Richard Kreckel kreckel@ginac.de 2015-04-14T20:50:31Z https://www.ginac.de/ginac.git/?p=ginac.git;a=commitdiff;h=5745deb8dbcee040d1012b8260ed317eb2a32f4b
Make compile_ex() work with CMake.

Infrastructure fixes to make CMake find libdl and make ginac-excompiler
listen to the $CXXFLAGS environment variable.
  • [D] ginsh/CMakeLists.txt
Fix build from git repository. 2013-07-31T21:33:44Z Richard Kreckel kreckel@ginac.de Richard Kreckel kreckel@ginac.de 2013-07-31T21:33:44Z https://www.ginac.de/ginac.git/?p=ginac.git;a=commitdiff;h=8bd8cedd086aeaf08630d5357af37151e1d06d06
Fix build from git repository.

To make automake aware of lex and yacc files, they must be renamed.
  • [D] ginsh/CMakeLists.txt
[build] GiNaC can be built with CMake now. 2011-05-30T23:50:01Z Alexei Sheplyakov Alexei.Sheplyakov@gmail.com Alexei Sheplyakov Alexei.Sheplyakov@gmail.com 2011-05-30T23:50:01Z https://www.ginac.de/ginac.git/?p=ginac.git;a=commitdiff;h=bf0d26572edecc37d98aec715e14fbd71a8c0315
[build] GiNaC can be built with CMake now.

Known issues:

* no make dist
* no make install-pdf
  • [D] ginsh/CMakeLists.txt