Commit Graph
11 Commits
Author SHA1 Message Date
Konstantin Podsvirov c5d49fb69a Configure and install libmarkdown.pc via CMake project 2020-10-21 01:13:11 +03:00
david parsons 90f4342678 split pgm_options into itself + flagprocs so that the new flag set/clear functions can be placed into the library w/o bringing in the rest of pgm_options 2020-05-27 14:30:31 -07:00
david parsons c444b233db add v2compat to the libmarkdown library in the cmakefile 2020-05-26 17:15:16 -07:00
Nicolas Fella 196e858cee Don't try to install markdown when building lib only 2019-12-31 01:14:49 +01:00
Konstantin Podsvirov 693f318eeb Add cmake option DISCOUNT_CXX_BINDING
This cmake option add behavior similar to:
./configure.sh --cxx-binding
2019-07-30 20:57:40 +03:00
Jeff Preshing acd7ce51e9 Fix CMake & MSVC builds 2019-06-12 20:10:18 -04:00
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