Mercurial > hg > MonetDB-extend
view regexp/CMakeLists.txt @ 61:b42fe5c9bd34 default tip
update to new versioned monetdb directories
author | Niels Nes <niels@cwi.nl> |
---|---|
date | Mon, 23 Sep 2024 13:34:22 +0200 (6 months ago) |
parents | 8122094c79b1 |
children |
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 - 2022 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-${MonetDB_VERSION}) 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})