/[pcre]/code/trunk/CMakeLists.txt
ViewVC logotype

Diff of /code/trunk/CMakeLists.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 303 by ph10, Sun Jan 20 19:39:43 2008 UTC revision 311 by ph10, Wed Jan 23 17:34:58 2008 UTC
# Line 15  Line 15 
15  #                PCRE_SUPPORT_LIBBZ2.  #                PCRE_SUPPORT_LIBBZ2.
16  # 2008-01-20 Brought up to date to include several new features by Christian  # 2008-01-20 Brought up to date to include several new features by Christian
17  #            Ehrlicher.  #            Ehrlicher.
18  #  # 2008-01-22 Sheri aded options for backward compatibility of library names when
19    #            building with minGW:
20    #            if "ON", NON_STANDARD_LIB_PREFIX causes shared libraries to
21    #            be built without "lib" as prefix. (The libraries will be named pcre.dll,
22    #            pcreposix.dll and pcrecpp.dll).
23    #            if "ON", NON_STANDARD_LIB_SUFFIX causes shared libraries to
24    #            be built with suffix of "-0.dll". (The libraries will be named
25    #            libpcre-0.dll, libpcreposix-0.dll and libpcrecpp-0.dll - same names
26    #            built by default with Configure and Make.
27    
28  PROJECT(PCRE C CXX)  PROJECT(PCRE C CXX)
29    
# Line 94  SET(PCRE_SUPPORT_UTF8 OFF CACHE BOOL Line 102  SET(PCRE_SUPPORT_UTF8 OFF CACHE BOOL
102  SET(PCRE_SUPPORT_BSR_ANYCRLF OFF CACHE BOOL  SET(PCRE_SUPPORT_BSR_ANYCRLF OFF CACHE BOOL
103      "ON=Backslash-R matches only LF CR and CRLF, OFF=Backslash-R matches all Unicode Linebreaks")      "ON=Backslash-R matches only LF CR and CRLF, OFF=Backslash-R matches all Unicode Linebreaks")
104    
105    SET(NON_STANDARD_LIB_PREFIX OFF CACHE BOOL
106       "ON=Shared libraries built in mingw will be named pcre.dll, etc., instead of libpcre.dll, etc.")
107    
108    SET(NON_STANDARD_LIB_SUFFIX OFF CACHE BOOL
109       "ON=Shared libraries built in mingw will be named libpcre-0.dll, etc., instead of libpcre.dll, etc.")
110    
111  # bzip2 lib  # bzip2 lib
112  IF(BZIP2_FOUND)  IF(BZIP2_FOUND)
113    OPTION (PCRE_SUPPORT_LIBBZ2 "Enable support for linking pcregrep with libbz2." ON)    OPTION (PCRE_SUPPORT_LIBBZ2 "Enable support for linking pcregrep with libbz2." ON)
# Line 311  ADD_LIBRARY(pcre ${PCRE_HEADERS} ${PCRE_ Line 325  ADD_LIBRARY(pcre ${PCRE_HEADERS} ${PCRE_
325  ADD_LIBRARY(pcreposix ${PCREPOSIX_HEADERS} ${PCREPOSIX_SOURCES})  ADD_LIBRARY(pcreposix ${PCREPOSIX_HEADERS} ${PCREPOSIX_SOURCES})
326  TARGET_LINK_LIBRARIES(pcreposix pcre)  TARGET_LINK_LIBRARIES(pcreposix pcre)
327    
328    IF(MINGW AND NON_STANDARD_LIB_PREFIX AND NOT PCRE_STATIC)
329    SET_TARGET_PROPERTIES(pcre pcreposix
330                            PROPERTIES PREFIX ""
331    )
332    ENDIF(MINGW AND NON_STANDARD_LIB_PREFIX AND NOT PCRE_STATIC)
333    
334    IF(MINGW AND NON_STANDARD_LIB_SUFFIX AND NOT PCRE_STATIC)
335    SET_TARGET_PROPERTIES(pcre pcreposix
336                            PROPERTIES SUFFIX "-0.dll"
337    )
338    ENDIF(MINGW AND NON_STANDARD_LIB_SUFFIX AND NOT PCRE_STATIC)
339    
340  IF(PCRE_BUILD_PCRECPP)  IF(PCRE_BUILD_PCRECPP)
341    ADD_LIBRARY(pcrecpp ${PCRECPP_HEADERS} ${PCRECPP_SOURCES})    ADD_LIBRARY(pcrecpp ${PCRECPP_HEADERS} ${PCRECPP_SOURCES})
342    TARGET_LINK_LIBRARIES(pcrecpp pcre)    TARGET_LINK_LIBRARIES(pcrecpp pcre)
343    IF(MINGW AND NON_STANDARD_LIB_PREFIX AND NOT PCRE_STATIC)
344    SET_TARGET_PROPERTIES(pcrecpp
345                            PROPERTIES PREFIX ""
346    )
347    ENDIF(MINGW AND NON_STANDARD_LIB_PREFIX AND NOT PCRE_STATIC)
348    IF(MINGW AND NON_STANDARD_LIB_SUFFIX AND NOT PCRE_STATIC)
349    SET_TARGET_PROPERTIES(pcrecpp
350                            PROPERTIES SUFFIX "-0.dll"
351    )
352    ENDIF(MINGW AND NON_STANDARD_LIB_SUFFIX AND NOT PCRE_STATIC)
353    
354  ENDIF(PCRE_BUILD_PCRECPP)  ENDIF(PCRE_BUILD_PCRECPP)
355    
356  # Executables  # Executables
# Line 334  ENDIF(NOT BUILD_SHARED_LIBS) Line 371  ENDIF(NOT BUILD_SHARED_LIBS)
371  IF(PCRE_BUILD_PCRECPP)  IF(PCRE_BUILD_PCRECPP)
372          ADD_EXECUTABLE(pcrecpp_unittest pcrecpp_unittest.cc)          ADD_EXECUTABLE(pcrecpp_unittest pcrecpp_unittest.cc)
373          TARGET_LINK_LIBRARIES(pcrecpp_unittest pcrecpp)          TARGET_LINK_LIBRARIES(pcrecpp_unittest pcrecpp)
374    IF(MINGW AND NON_STANDARD_LIB_NAMES AND NOT PCRE_STATIC)
375    SET_TARGET_PROPERTIES(pcrecpp
376                            PROPERTIES PREFIX ""
377    )
378    ENDIF(MINGW AND NON_STANDARD_LIB_NAMES AND NOT PCRE_STATIC)
379    
380    
381          ADD_EXECUTABLE(pcre_scanner_unittest pcre_scanner_unittest.cc)          ADD_EXECUTABLE(pcre_scanner_unittest pcre_scanner_unittest.cc)
382          TARGET_LINK_LIBRARIES(pcre_scanner_unittest pcrecpp)          TARGET_LINK_LIBRARIES(pcre_scanner_unittest pcrecpp)
# Line 415  ELSE(PCRE_BUILD_PCRECPP) Line 458  ELSE(PCRE_BUILD_PCRECPP)
458          SET(man3 ${man3_new})          SET(man3 ${man3_new})
459  ENDIF(PCRE_BUILD_PCRECPP)  ENDIF(PCRE_BUILD_PCRECPP)
460    
461    
462  INSTALL(FILES ${man1} DESTINATION man/man1)  INSTALL(FILES ${man1} DESTINATION man/man1)
463  INSTALL(FILES ${man3} DESTINATION man/man3)  INSTALL(FILES ${man3} DESTINATION man/man3)
464  INSTALL(FILES ${html} DESTINATION share/doc/pcre/html)  INSTALL(FILES ${html} DESTINATION share/doc/pcre/html)
# Line 443  MESSAGE(STATUS " Newline char/sequence Line 487  MESSAGE(STATUS " Newline char/sequence
487  MESSAGE(STATUS "  \\R matches only ANYCRLF ......... : " ${PCRE_SUPPORT_BSR_ANYCRLF})  MESSAGE(STATUS "  \\R matches only ANYCRLF ......... : " ${PCRE_SUPPORT_BSR_ANYCRLF})
488  MESSAGE(STATUS "  EBCDIC coding ................... : " ${PCRE_EBCDIC})  MESSAGE(STATUS "  EBCDIC coding ................... : " ${PCRE_EBCDIC})
489  MESSAGE(STATUS "  Rebuild char tables ............. : " ${PCRE_REBUILD_CHARTABLES})  MESSAGE(STATUS "  Rebuild char tables ............. : " ${PCRE_REBUILD_CHARTABLES})
490  MESSAGE(STATUS "  Use stack recursion ............. : " ${PCRE_NO_RECURSE})  MESSAGE(STATUS "  No stack recursion .............. : " ${PCRE_NO_RECURSE})
491  MESSAGE(STATUS "  POSIX mem threshold ............. : " ${PCRE_POSIX_MALLOC_THRESHOLD})  MESSAGE(STATUS "  POSIX mem threshold ............. : " ${PCRE_POSIX_MALLOC_THRESHOLD})
492  MESSAGE(STATUS "  Internal link size .............. : " ${PCRE_LINK_SIZE})  MESSAGE(STATUS "  Internal link size .............. : " ${PCRE_LINK_SIZE})
493  MESSAGE(STATUS "  Match limit ..................... : " ${PCRE_MATCH_LIMIT})  MESSAGE(STATUS "  Match limit ..................... : " ${PCRE_MATCH_LIMIT})

Legend:
Removed from v.303  
changed lines
  Added in v.311

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12