This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/library/regex/CMakeLists.txt

32 lines
640 B
CMake
Raw Normal View History

2014-12-14 12:05:43 +00:00
set ( REGEX_INCLUDES
2014-12-14 12:05:43 +00:00
cclass.h
cname.h
collate.h
utils.h
yapregex.h
engine.c
)
2017-02-22 21:28:05 +00:00
set ( REGEX_SOURCES
2014-12-14 12:05:43 +00:00
regcomp.c
2016-04-18 01:10:58 +01:00
regerror.c
regexec.c
regfree.c
2014-12-14 12:05:43 +00:00
)
2017-02-22 21:28:05 +00:00
2019-01-09 09:32:09 +00:00
add_library(regexp regexp.c ${REGEX_SOURCES})
2016-04-18 01:10:58 +01:00
target_link_libraries(regexp libYap)
2014-12-14 12:05:43 +00:00
set_target_properties (regexp PROPERTIES PREFIX "")
2017-02-22 21:28:05 +00:00
TARGET_INCLUDE_DIRECTORIES (regexp PUBLIC BEFORE
2019-01-18 03:49:42 +00:00
${CMAKE_SOURCE_DIR}/include;${CMAKE_CURRENT_BINARY_DIR};${CMAKE_CURRENT_SOURCE_DIR} )
2014-12-14 12:05:43 +00:00
install(TARGETS regexp
2018-11-16 14:02:56 +00:00
LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
RUNTIME DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR} )