Commit Graph
5 Commits
Author SHA1 Message Date
david parsons 073c7af868 patch the cmakefile so that has an option to only generate a library 2018-10-07 10:07:41 -07:00
Konstantin Podsvirov a529b4b89e Improve CMake project
Added more system checks to build
on different platforms.
2017-12-14 02:28:43 +03:00
Konstantin Podsvirov adf7d78447 Add forgoten file for #177 2017-12-10 07:32:15 +03:00
Konstantin Podsvirov 5cf4b6c12c Add CMake install rules
CMake options:

* DISCOUNT_MAKE_INSTALL - Set to OFF to disable install rules (default is ON);
* DISCOUNT_INSTALL_SAMPLES - Set to ON to install sample programs (default is OFF).

Export `discount` package with targets:

* discount::libmarkdown;
* discount::markdown;
* discount::mkd2html (optional);
* discount::makepage (optional).

Usage from CMake project:

  find_package(discount)
  add_executable(program main.c)
  target_link_libraries(program discount::libmarkdown)
2017-12-10 07:10:55 +03:00
Konstantin Podsvirov 1d6e8bfff5 Move CMake files to subdirectory 2017-12-08 21:14:55 +03:00