windows support
This commit is contained in:
parent
c1b8d140db
commit
37649b7d1a
@ -160,6 +160,12 @@ set(YAP_MODULES
|
|||||||
$<TARGET_OBJECTS:utf8proc>
|
$<TARGET_OBJECTS:utf8proc>
|
||||||
)
|
)
|
||||||
else(YAP_SINGLE_FILE)
|
else(YAP_SINGLE_FILE)
|
||||||
|
if (WIN32)
|
||||||
|
set(YAP_MODULES
|
||||||
|
$<TARGET_OBJECTS:Yap++>
|
||||||
|
${YAP_MODULES}
|
||||||
|
)
|
||||||
|
endif( )
|
||||||
set( UTF8PROC_DL utf8proc)
|
set( UTF8PROC_DL utf8proc)
|
||||||
endif(YAP_SINGLE_FILE)
|
endif(YAP_SINGLE_FILE)
|
||||||
|
|
||||||
@ -466,10 +472,8 @@ add_subDIRECTORY (os)
|
|||||||
#bootstrap and saved state
|
#bootstrap and saved state
|
||||||
add_subDIRECTORY (pl)
|
add_subDIRECTORY (pl)
|
||||||
|
|
||||||
IF (NOT MSVC)
|
|
||||||
#C++ interface
|
#C++ interface
|
||||||
add_subDIRECTORY (CXX)
|
add_subDIRECTORY (CXX)
|
||||||
ENDIF(NOT MSVC)
|
|
||||||
|
|
||||||
ADD_SUBDIRECTORY(library)
|
ADD_SUBDIRECTORY(library)
|
||||||
ADD_SUBDIRECTORY(swi/library)
|
ADD_SUBDIRECTORY(swi/library)
|
||||||
@ -542,7 +546,7 @@ option (WITH_DOCS
|
|||||||
|
|
||||||
#TODO: use cmake target builds
|
#TODO: use cmake target builds
|
||||||
# option (USE_DEBUGYAP
|
# option (USE_DEBUGYAP
|
||||||
# "enable C-debugging for YAP" OFF)
|
# "enable C-debugging for YAP" OFF)e
|
||||||
|
|
||||||
#TODO: use cmake arch/compiler
|
#TODO: use cmake arch/compiler
|
||||||
# option (USE_CYGWIN
|
# option (USE_CYGWIN
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
|
|
||||||
add_library (regexp SHARED regexp.c)
|
|
||||||
|
|
||||||
if( NOT HAVE_REGEX_H )
|
|
||||||
set ( REGEX_SOURCES
|
set ( REGEX_SOURCES
|
||||||
cclass.h
|
cclass.h
|
||||||
cname.h
|
cname.h
|
||||||
@ -10,10 +7,14 @@ if( NOT HAVE_REGEX_H )
|
|||||||
yapregex.h
|
yapregex.h
|
||||||
engine.c
|
engine.c
|
||||||
regcomp.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 "")
|
set_target_properties (regexp PROPERTIES PREFIX "")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user