Removed FindZ80.cmake; Updated documentation acordingly.
This commit is contained in:
@@ -14,7 +14,7 @@ Installation
|
||||
|
||||
\newline
|
||||
|
||||
You will need `CMake <https://cmake.org>`_ v3.14 or later to build the package and, optionally, recent versions of `Doxygen <https://www.doxygen.nl>`_, `Sphinx <https://www.sphinx-doc.org>`_ and `Breathe <https://github.com/michaeljones/breathe>`_ to compile the documentation. Also make sure you have `LaTeX <https://www.latex-project.org>`_ with PDF support installed on your system in case you want to generate the documentation in PDF format.
|
||||
You will need `CMake <https://cmake.org>`_ v3.14 or later to build the package and, optionally, recent versions of `Doxygen <https://www.doxygen.nl>`_, `Sphinx <https://www.sphinx-doc.org>`_ and `Breathe <https://github.com/michaeljones/breathe>`_ to compile the documentation. Also make sure you have `LaTeX <https://www.latex-project.org>`_ with PDF support installed on your system if you want to generate the documentation in PDF format.
|
||||
|
||||
The emulator requires some types and macros included in `Zeta <https://zeta.st>`_, a dependency-free, `header-only <https://en.wikipedia.org/wiki/Header-only>`_ library used to retain compatibility with most C compilers. Install Zeta or extract its official source code package to the directory of the Z80 project or its parent directory. Zeta is the sole dependency; the emulator is a freestanding implementation and as such does not depend on the
|
||||
`C standard library <https://en.wikipedia.org/wiki/C_standard_library>`_.
|
||||
@@ -152,7 +152,7 @@ The second group of package-specific options configures the source code of the l
|
||||
Build the implementation of the bug affecting the Zilog Z80 NMOS, which causes the P/V flag to be reset when a maskable interrupt is accepted during the execution of the ``ld a,{i|r}`` instructions. |br| |nl|
|
||||
The default is ``NO``.
|
||||
|
||||
Package maintainers should use at least the following options for both shared and static library targets:
|
||||
Package maintainers should use at least the following options for the shared library:
|
||||
|
||||
.. code-block:: sh
|
||||
|
||||
|
||||
@@ -17,9 +17,7 @@ Integration
|
||||
As an external dependency in CMake-based projects
|
||||
-------------------------------------------------
|
||||
|
||||
The Z80 library includes find-modules and a config-file package for integration into CMake-based projects. It is recommended to always copy the ``FindZ80.cmake`` and ``FindZeta.cmake`` files into the CMake modules directory of projects that use the library as an external dependency. This will allow CMake to find the library if the necessary config-file packages are not installed on the system.
|
||||
|
||||
Both the config-file package and the find-module support dual installations of the shared and static versions of the Z80 library. You can specify the linking method by using the component mechanism of ``find_package``.
|
||||
The Z80 library includes a `config-file package <https://cmake.org/cmake/help/latest/manual/cmake-packages.7.html#config-file-packages>`_ for integration into CMake-based projects, which should be installed on development environments. As usual, just call ``find_package`` to find the library. This creates the imported ``Z80`` target carrying the necessary transitive link dependencies. The linking method can optionally be selected by specifying the ``Shared`` or ``Static`` component of the ``Z80`` package.
|
||||
|
||||
Example:
|
||||
|
||||
@@ -28,7 +26,7 @@ Example:
|
||||
find_package(Z80 REQUIRED [Shared|Static])
|
||||
target_link_libraries(your-target Z80)
|
||||
|
||||
Omitting the linking method will select the ``Shared`` version of the library or, if not installed, the ``Static`` version instead.
|
||||
When not specified as a component, the linking method is selected according to ``Z80_SHARED_LIBS``. If this option is not defined, the config-file package uses the type of library that is installed on the system and, if it finds both the shared and the static versions, ``BUILD_SHARED_LIBS`` determines which one to link against.
|
||||
|
||||
As a CMake subproject
|
||||
---------------------
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
ST CMOS Z80 no se comporta igual en los flags de las instrucciones de bloque?
|
||||
https://stardot.org.uk/forums/viewtopic.php?p=212100#p212100
|
||||
Reference in New Issue
Block a user