/[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 685 by ph10, Tue Sep 6 15:02:07 2011 UTC revision 710 by ph10, Sun Sep 25 10:57:12 2011 UTC
# Line 117  SET(PCRE_POSIX_MALLOC_THRESHOLD "10" CAC Line 117  SET(PCRE_POSIX_MALLOC_THRESHOLD "10" CAC
117    
118  SET(PCRE_SUPPORT_JIT OFF CACHE BOOL  SET(PCRE_SUPPORT_JIT OFF CACHE BOOL
119      "Enable support for Just-in-time compiling.")      "Enable support for Just-in-time compiling.")
120    
121  SET(PCRE_SUPPORT_PCREGREP_JIT ON CACHE BOOL  SET(PCRE_SUPPORT_PCREGREP_JIT ON CACHE BOOL
122      "Enable use of Just-in-time compiling in pcregrep.")      "Enable use of Just-in-time compiling in pcregrep.")
123    
124  SET(PCRE_SUPPORT_UNICODE_PROPERTIES OFF CACHE BOOL  SET(PCRE_SUPPORT_UNICODE_PROPERTIES OFF CACHE BOOL
125      "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)")
126    
# Line 217  ENDIF(PCRE_SUPPORT_UNICODE_PROPERTIES) Line 217  ENDIF(PCRE_SUPPORT_UNICODE_PROPERTIES)
217    
218  IF(PCRE_SUPPORT_JIT)  IF(PCRE_SUPPORT_JIT)
219          SET(SUPPORT_JIT 1)          SET(SUPPORT_JIT 1)
220  ELSE  ENDIF(PCRE_SUPPORT_JIT)
         SET(PCRE_SUPPORT_PCREGREP_JIT 0)  
 ENDIF(PCRE_SUPPORT_JIT)  
221    
222  IF(PCRE_SUPPORT_PCREGREP_JIT)  IF(PCRE_SUPPORT_PCREGREP_JIT)
223          SET(SUPPORT_PCREGREP_JIT 1)          SET(SUPPORT_PCREGREP_JIT 1)
224  ENDIF(PCRE_SUPPORT_PCREGREP_JIT)  ENDIF(PCRE_SUPPORT_PCREGREP_JIT)
225    
226  # This next one used to contain  # This next one used to contain
227  #       SET(PCRETEST_LIBS ${READLINE_LIBRARY})  #       SET(PCRETEST_LIBS ${READLINE_LIBRARY})
# Line 449  IF(PCRE_BUILD_TESTS) Line 447  IF(PCRE_BUILD_TESTS)
447    ADD_EXECUTABLE(pcretest pcretest.c)    ADD_EXECUTABLE(pcretest pcretest.c)
448    SET(targets ${targets} pcretest)    SET(targets ${targets} pcretest)
449    TARGET_LINK_LIBRARIES(pcretest pcreposix ${PCRETEST_LIBS})    TARGET_LINK_LIBRARIES(pcretest pcreposix ${PCRETEST_LIBS})
450    
451    IF(PCRE_SUPPORT_JIT)    IF(PCRE_SUPPORT_JIT)
452      ADD_EXECUTABLE(pcre_jit_test pcre_jit_test.c)      ADD_EXECUTABLE(pcre_jit_test pcre_jit_test.c)
453      SET(targets ${targets} pcre_jit_test)      SET(targets ${targets} pcre_jit_test)
454      TARGET_LINK_LIBRARIES(pcre_jit_test pcre)      TARGET_LINK_LIBRARIES(pcre_jit_test pcre)
455    ENDIF(PCRE_SUPPORT_JIT)    ENDIF(PCRE_SUPPORT_JIT)
456    
457    IF(PCRE_BUILD_PCRECPP)    IF(PCRE_BUILD_PCRECPP)
458      ADD_EXECUTABLE(pcrecpp_unittest pcrecpp_unittest.cc)      ADD_EXECUTABLE(pcrecpp_unittest pcrecpp_unittest.cc)
# Line 489  IF(PCRE_BUILD_TESTS) Line 487  IF(PCRE_BUILD_TESTS)
487    ")    ")
488    
489    IF(UNIX)    IF(UNIX)
490            ADD_TEST(pcre_test      ${PROJECT_SOURCE_DIR}/RunTest)      ADD_TEST(pcre_test      ${PROJECT_SOURCE_DIR}/RunTest)
491            ADD_TEST(pcre_grep_test ${PROJECT_SOURCE_DIR}/RunGrepTest)      ADD_TEST(pcre_grep_test ${PROJECT_SOURCE_DIR}/RunGrepTest)
492    ENDIF(UNIX)    ENDIF(UNIX)
493    
494    IF(WIN32)    IF(WIN32)
495            # ADD_TEST(pcre_test cmd /C ${PROJECT_SOURCE_DIR}/RunTest.bat)      IF("$ENV{OSTYPE}" STREQUAL "msys")
496            ADD_TEST(pcre_test ${PROJECT_SOURCE_DIR}/RunTest.bat)        ADD_TEST(pcre_test      sh ${PROJECT_SOURCE_DIR}/RunTest)
497          ADD_TEST(pcre_grep_test sh ${PROJECT_SOURCE_DIR}/RunGrepTest)
498        ELSE("$ENV{OSTYPE}" STREQUAL "msys")
499          # ADD_TEST(pcre_test cmd /C ${PROJECT_SOURCE_DIR}/RunTest.bat)
500          ADD_TEST(pcre_test ${PROJECT_SOURCE_DIR}/RunTest.bat)
501        ENDIF("$ENV{OSTYPE}" STREQUAL "msys")
502    ENDIF(WIN32)    ENDIF(WIN32)
503    
504    IF(PCRE_SUPPORT_JIT)    IF(PCRE_SUPPORT_JIT)
505    GET_TARGET_PROPERTY(PCRE_JIT_TEST_EXE    GET_TARGET_PROPERTY(PCRE_JIT_TEST_EXE
506                        pcre_jit_test                        pcre_jit_test
507                        DEBUG_LOCATION)                        DEBUG_LOCATION)
508    ENDIF(PCRE_SUPPORT_JIT)    ENDIF(PCRE_SUPPORT_JIT)
509    
510    GET_TARGET_PROPERTY(PCRECPP_UNITTEST_EXE    GET_TARGET_PROPERTY(PCRECPP_UNITTEST_EXE
511                        pcrecpp_unittest                        pcrecpp_unittest
# Line 516  IF(PCRE_BUILD_TESTS) Line 520  IF(PCRE_BUILD_TESTS)
520                        DEBUG_LOCATION)                        DEBUG_LOCATION)
521    
522    IF(PCRE_SUPPORT_JIT)    IF(PCRE_SUPPORT_JIT)
523    ADD_TEST(pcre_jit_test         ${PCRE_JIT_TEST_EXE})      ADD_TEST(pcre_jit_test       ${PCRE_JIT_TEST_EXE})
524    ENDIF(PCRE_SUPPORT_JIT)    ENDIF(PCRE_SUPPORT_JIT)
525    
526    ADD_TEST(pcrecpp_test          ${PCRECPP_UNITTEST_EXE})    ADD_TEST(pcrecpp_test          ${PCRECPP_UNITTEST_EXE})
527    ADD_TEST(pcre_scanner_test     ${PCRE_SCANNER_UNITTEST_EXE})    ADD_TEST(pcre_scanner_test     ${PCRE_SCANNER_UNITTEST_EXE})
528    ADD_TEST(pcre_stringpiece_test ${PCRE_STRINGPIECE_UNITTEST_EXE})    ADD_TEST(pcre_stringpiece_test ${PCRE_STRINGPIECE_UNITTEST_EXE})

Legend:
Removed from v.685  
changed lines
  Added in v.710

  ViewVC Help
Powered by ViewVC 1.1.5