windows support

This commit is contained in:
vscosta
2016-04-17 17:10:58 -07:00
parent c1b8d140db
commit 37649b7d1a
2 changed files with 13 additions and 8 deletions

View File

@@ -1,7 +1,4 @@
add_library (regexp SHARED regexp.c)
if( NOT HAVE_REGEX_H )
set ( REGEX_SOURCES
cclass.h
cname.h
@@ -10,10 +7,14 @@ if( NOT HAVE_REGEX_H )
yapregex.h
engine.c
regcomp.c
regerror.c
regexec.c
regfree.c
)
endif( NOT HAVE_REGEX_H )
target_link_libraries(regexp libYap ${REGEX_SOURCES})
add_library (regexp SHARED regexp.c ${REGEX_SOURCES})
target_link_libraries(regexp libYap)
set_target_properties (regexp PROPERTIES PREFIX "")