Mercurial > hg > MonetDB-extend
view regexp/CMakeLists.txt @ 52:22b5ec33dd19
Fix cmake build for monetdbe-extend.
author | Aris Koning <aris.koning@monetdbsolutions.com> |
---|---|
date | Mon, 29 Nov 2021 12:31:50 +0100 (2021-11-29) |
parents | e5d2d0c9b7b3 |
children | 8122094c79b1 |
line wrap: on
line source
#[[ # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # # Copyright 1997 - July 2008 CWI, August 2008 - 2019 MonetDB B.V. #]] add_library(regexp SHARED) target_sources(regexp PRIVATE regexp.c) target_link_libraries(regexp PRIVATE MonetDB::monetdb_config_header MonetDB::monetdb5 PCRE::PCRE) set_target_properties(regexp PROPERTIES OUTPUT_NAME _regexp) install(TARGETS regexp RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/monetdb5) add_custom_command(OUTPUT README.html COMMAND "rst2html" "-d" "${CMAKE_SOURCE_DIR}/README.rst" "README.html") add_custom_command(OUTPUT README.pdf COMMAND "rst2pdf" "${CMAKE_SOURCE_DIR}/README.rst" "-o" "README.pdf") add_custom_target(regexp-docs DEPENDS README.html README.pdf WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})