/[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 139 by ph10, Thu Mar 29 13:56:00 2007 UTC revision 140 by ph10, Fri Mar 30 14:16:42 2007 UTC
# Line 103  IF(PCRE_SUPPORT_UNICODE_PROPERTIES) Line 103  IF(PCRE_SUPPORT_UNICODE_PROPERTIES)
103  ENDIF(PCRE_SUPPORT_UNICODE_PROPERTIES)  ENDIF(PCRE_SUPPORT_UNICODE_PROPERTIES)
104    
105  IF(PCRE_NEWLINE STREQUAL "LF")  IF(PCRE_NEWLINE STREQUAL "LF")
106          SET(NEWLINE "10")    SET(NEWLINE "10")
 ELSEIF(PCRE_NEWLINE STREQUAL "CR")  
         SET(NEWLINE "13")  
 ELSEIF(PCRE_NEWLINE STREQUAL "CRLF")  
         SET(NEWLINE "3338")  
 ELSEIF(PCRE_NEWLINE STREQUAL "ANY")  
         SET(NEWLINE "-1")  
107  ELSE(PCRE_NEWLINE STREQUAL "LF")  ELSE(PCRE_NEWLINE STREQUAL "LF")
108      IF(PCRE_NEWLINE STREQUAL "CR")
109        SET(NEWLINE "13")
110      ELSE(PCRE_NEWLINE STREQUAL "CR")
111        IF(PCRE_NEWLINE STREQUAL "CRLF")
112          SET(NEWLINE "3338")
113        ELSE(PCRE_NEWLINE STREQUAL "CRLF")
114          IF(PCRE_NEWLINE STREQUAL "ANY")
115            SET(NEWLINE "-1")
116          ELSE(PCRE_NEWLINE STREQUAL "ANY")
117          MESSAGE(FATAL_ERROR "The PCRE_NEWLINE variable must be set to one of the following values: \"LF\", \"CR\", \"CRLF\", \"ANY\".")          MESSAGE(FATAL_ERROR "The PCRE_NEWLINE variable must be set to one of the following values: \"LF\", \"CR\", \"CRLF\", \"ANY\".")
118          ENDIF(PCRE_NEWLINE STREQUAL "ANY")
119        ENDIF(PCRE_NEWLINE STREQUAL "CRLF")
120      ENDIF(PCRE_NEWLINE STREQUAL "CR")
121  ENDIF(PCRE_NEWLINE STREQUAL "LF")  ENDIF(PCRE_NEWLINE STREQUAL "LF")
122    
123  IF(PCRE_EBCDIC)  IF(PCRE_EBCDIC)
# Line 136  CONFIGURE_FILE(pcre.h.generic Line 142  CONFIGURE_FILE(pcre.h.generic
142    
143  IF(PCRE_BUILD_PCRECPP)  IF(PCRE_BUILD_PCRECPP)
144          CONFIGURE_FILE(pcre_stringpiece.h.in          CONFIGURE_FILE(pcre_stringpiece.h.in
145                         ${CMAKE_BINARY_DIR}/pcre_stringpiece.h                         ${CMAKE_BINARY_DIR}/pcre_stringpiece.h
146                         @ONLY)                         @ONLY)
147    
148          CONFIGURE_FILE(pcrecpparg.h.in          CONFIGURE_FILE(pcrecpparg.h.in
149                         ${CMAKE_BINARY_DIR}/pcrecpparg.h                         ${CMAKE_BINARY_DIR}/pcrecpparg.h
150                         @ONLY)                         @ONLY)
151  ENDIF(PCRE_BUILD_PCRECPP)  ENDIF(PCRE_BUILD_PCRECPP)
152    
153  # Character table generation  # Character table generation
# Line 154  ADD_CUSTOM_COMMAND( Line 160  ADD_CUSTOM_COMMAND(
160          COMMENT "Generating character tables (pcre_chartables.c) for current locale"          COMMENT "Generating character tables (pcre_chartables.c) for current locale"
161          DEPENDS dftables          DEPENDS dftables
162          COMMAND ${DFTABLES_EXE}          COMMAND ${DFTABLES_EXE}
163          ARGS    ${CMAKE_BINARY_DIR}/pcre_chartables.c          ARGS    ${CMAKE_BINARY_DIR}/pcre_chartables.c
164          OUTPUT  ${CMAKE_BINARY_DIR}/pcre_chartables.c          OUTPUT  ${CMAKE_BINARY_DIR}/pcre_chartables.c
165  )  )
166    
167  # Source code  # Source code
# Line 243  TARGET_LINK_LIBRARIES(pcregrep pcreposix Line 249  TARGET_LINK_LIBRARIES(pcregrep pcreposix
249  ENABLE_TESTING()  ENABLE_TESTING()
250    
251  IF(UNIX)  IF(UNIX)
252          ADD_TEST(test1 ${CMAKE_SOURCE_DIR}/RunTest srcdir=${CMAKE_SOURCE_DIR})          ADD_TEST(test1 sh -c "srcdir=${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/RunTest")
253  ELSEIF(WIN32)          ADD_TEST(test2 sh -c "srcdir=${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/RunGrepTest")
254    ELSE(UNIX)
255      IF(WIN32)
256          ADD_TEST(test1 ${CMAKE_SOURCE_DIR}/RunTest.bat ${CMAKE_SOURCE_DIR})          ADD_TEST(test1 ${CMAKE_SOURCE_DIR}/RunTest.bat ${CMAKE_SOURCE_DIR})
257      ENDIF(WIN32)
258  ENDIF(UNIX)  ENDIF(UNIX)
259    
260  # Installation  # Installation

Legend:
Removed from v.139  
changed lines
  Added in v.140

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12