/[pcre]/code/branches/pcre16/CMakeLists.txt
ViewVC logotype

Diff of /code/branches/pcre16/CMakeLists.txt

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

revision 666 by ph10, Tue Aug 2 16:26:12 2011 UTC revision 667 by ph10, Mon Aug 22 14:57:32 2011 UTC
# Line 38  Line 38 
38  # 2010-01-02 PH added test for stdint.h  # 2010-01-02 PH added test for stdint.h
39  # 2010-03-02 PH added test for inttypes.h  # 2010-03-02 PH added test for inttypes.h
40  # 2011-08-01 PH added PCREGREP_BUFSIZE  # 2011-08-01 PH added PCREGREP_BUFSIZE
41    # 2011-08-22 PH added PCRE_SUPPORT_JIT
42    
43  PROJECT(PCRE C CXX)  PROJECT(PCRE C CXX)
44    
# Line 112  SET(PCRE_NO_RECURSE OFF CACHE BOOL Line 113  SET(PCRE_NO_RECURSE OFF CACHE BOOL
113  SET(PCRE_POSIX_MALLOC_THRESHOLD "10" CACHE STRING  SET(PCRE_POSIX_MALLOC_THRESHOLD "10" CACHE STRING
114      "Threshold for malloc() usage. See POSIX_MALLOC_THRESHOLD in config.h.in for details.")      "Threshold for malloc() usage. See POSIX_MALLOC_THRESHOLD in config.h.in for details.")
115    
116    SET(PCRE_SUPPORT_JIT OFF CACHE BOOL
117        "Enable support for Just-in-time compiling.")
118    
119  SET(PCRE_SUPPORT_UNICODE_PROPERTIES OFF CACHE BOOL  SET(PCRE_SUPPORT_UNICODE_PROPERTIES OFF CACHE BOOL
120      "Enable support for Unicode properties. (If set, UTF-8 support will be enabled as well)")      "Enable support for Unicode properties. (If set, UTF-8 support will be enabled as well)")
121    
# Line 206  IF(PCRE_SUPPORT_UNICODE_PROPERTIES) Line 210  IF(PCRE_SUPPORT_UNICODE_PROPERTIES)
210          SET(SUPPORT_UCP 1)          SET(SUPPORT_UCP 1)
211  ENDIF(PCRE_SUPPORT_UNICODE_PROPERTIES)  ENDIF(PCRE_SUPPORT_UNICODE_PROPERTIES)
212    
213    IF(PCRE_SUPPORT_JIT)
214            SET(SUPPORT_JIT 1)
215    ENDIF(PCRE_SUPPORT_JIT)
216    
217  # This next one used to contain  # This next one used to contain
218  #       SET(PCRETEST_LIBS ${READLINE_LIBRARY})  #       SET(PCRETEST_LIBS ${READLINE_LIBRARY})
219  # but I was advised to add the NCURSES test as well, along with  # but I was advised to add the NCURSES test as well, along with
# Line 313  SET(PCRE_SOURCES Line 321  SET(PCRE_SOURCES
321    pcre_get.c    pcre_get.c
322    pcre_globals.c    pcre_globals.c
323    pcre_info.c    pcre_info.c
324      pcre_jit_compile.c
325    pcre_newline.c    pcre_newline.c
326    pcre_maketables.c    pcre_maketables.c
327    pcre_ord2utf8.c    pcre_ord2utf8.c
# Line 429  IF(PCRE_BUILD_TESTS) Line 438  IF(PCRE_BUILD_TESTS)
438    ADD_EXECUTABLE(pcretest pcretest.c)    ADD_EXECUTABLE(pcretest pcretest.c)
439    SET(targets ${targets} pcretest)    SET(targets ${targets} pcretest)
440    TARGET_LINK_LIBRARIES(pcretest pcreposix ${PCRETEST_LIBS})    TARGET_LINK_LIBRARIES(pcretest pcreposix ${PCRETEST_LIBS})
441    
442      IF(PCRE_SUPPORT_JIT)
443        ADD_EXECUTABLE(pcre_jit_test pcre_jit_test.c)
444        SET(targets ${targets} pcre_jit_test)
445        TARGET_LINK_LIBRARIES(pcre_jit_test pcre)
446      ENDIF(PCRE_SUPPORT_JIT)
447    
448    IF(PCRE_BUILD_PCRECPP)    IF(PCRE_BUILD_PCRECPP)
449      ADD_EXECUTABLE(pcrecpp_unittest pcrecpp_unittest.cc)      ADD_EXECUTABLE(pcrecpp_unittest pcrecpp_unittest.cc)
# Line 440  IF(PCRE_BUILD_TESTS) Line 455  IF(PCRE_BUILD_TESTS)
455        )        )
456      ENDIF(MINGW AND NON_STANDARD_LIB_NAMES AND NOT PCRE_STATIC)      ENDIF(MINGW AND NON_STANDARD_LIB_NAMES AND NOT PCRE_STATIC)
457    
   
458      ADD_EXECUTABLE(pcre_scanner_unittest pcre_scanner_unittest.cc)      ADD_EXECUTABLE(pcre_scanner_unittest pcre_scanner_unittest.cc)
459      SET(targets ${targets} pcre_scanner_unittest)      SET(targets ${targets} pcre_scanner_unittest)
460      TARGET_LINK_LIBRARIES(pcre_scanner_unittest pcrecpp)      TARGET_LINK_LIBRARIES(pcre_scanner_unittest pcrecpp)
# Line 471  IF(PCRE_BUILD_TESTS) Line 485  IF(PCRE_BUILD_TESTS)
485            ADD_TEST(pcre_test cmd /C ${PROJECT_SOURCE_DIR}/RunTest.bat)            ADD_TEST(pcre_test cmd /C ${PROJECT_SOURCE_DIR}/RunTest.bat)
486    ENDIF(WIN32)    ENDIF(WIN32)
487    
488      IF(PCRE_SUPPORT_JIT)
489      GET_TARGET_PROPERTY(PCRE_JIT_TEST_EXE
490                          pcre_jit_test
491                          DEBUG_LOCATION)
492      ENDIF(PCRE_SUPPORT_JIT)
493    
494    GET_TARGET_PROPERTY(PCRECPP_UNITTEST_EXE    GET_TARGET_PROPERTY(PCRECPP_UNITTEST_EXE
495                        pcrecpp_unittest                        pcrecpp_unittest
496                        DEBUG_LOCATION)                        DEBUG_LOCATION)
# Line 483  IF(PCRE_BUILD_TESTS) Line 503  IF(PCRE_BUILD_TESTS)
503                        pcre_stringpiece_unittest                        pcre_stringpiece_unittest
504                        DEBUG_LOCATION)                        DEBUG_LOCATION)
505    
506      IF(PCRE_SUPPORT_JIT)
507      ADD_TEST(pcre_jit_test         ${PCRE_JIT_TEST_EXE})
508      ENDIF(PCRE_SUPPORT_JIT)
509    ADD_TEST(pcrecpp_test          ${PCRECPP_UNITTEST_EXE})    ADD_TEST(pcrecpp_test          ${PCRECPP_UNITTEST_EXE})
510    ADD_TEST(pcre_scanner_test     ${PCRE_SCANNER_UNITTEST_EXE})    ADD_TEST(pcre_scanner_test     ${PCRE_SCANNER_UNITTEST_EXE})
511    ADD_TEST(pcre_stringpiece_test ${PCRE_STRINGPIECE_UNITTEST_EXE})    ADD_TEST(pcre_stringpiece_test ${PCRE_STRINGPIECE_UNITTEST_EXE})
# Line 546  IF(PCRE_SHOW_REPORT) Line 569  IF(PCRE_SHOW_REPORT)
569    MESSAGE(STATUS "  C++ compiler flags .............. : ${CMAKE_CXX_FLAGS}${cxxfsp}${CMAKE_CXX_FLAGS_${buildtype}}")    MESSAGE(STATUS "  C++ compiler flags .............. : ${CMAKE_CXX_FLAGS}${cxxfsp}${CMAKE_CXX_FLAGS_${buildtype}}")
570    MESSAGE(STATUS "")    MESSAGE(STATUS "")
571    MESSAGE(STATUS "  Build C++ library ............... : ${PCRE_BUILD_PCRECPP}")    MESSAGE(STATUS "  Build C++ library ............... : ${PCRE_BUILD_PCRECPP}")
572      MESSAGE(STATUS "  Enable JIT compiling support .... : ${PCRE_SUPPORT_JIT}")
573    MESSAGE(STATUS "  Enable UTF-8 support ............ : ${PCRE_SUPPORT_UNICODE_PROPERTIES}")    MESSAGE(STATUS "  Enable UTF-8 support ............ : ${PCRE_SUPPORT_UNICODE_PROPERTIES}")
574    MESSAGE(STATUS "  Unicode properties .............. : ${PCRE_SUPPORT_UNICODE_PROPERTIES}")    MESSAGE(STATUS "  Unicode properties .............. : ${PCRE_SUPPORT_UNICODE_PROPERTIES}")
575    MESSAGE(STATUS "  Newline char/sequence ........... : ${PCRE_NEWLINE}")    MESSAGE(STATUS "  Newline char/sequence ........... : ${PCRE_NEWLINE}")

Legend:
Removed from v.666  
changed lines
  Added in v.667

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12