/[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 318 by ph10, Mon Jan 28 15:27:17 2008 UTC revision 495 by ph10, Tue Mar 2 11:56:59 2010 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 added options for backward compatibility of library names when  # 2008-01-22 Sheri added options for backward compatibility of library names
19  #            building with minGW:  #            when building with minGW:
20  #            if "ON", NON_STANDARD_LIB_PREFIX causes shared libraries to  #            if "ON", NON_STANDARD_LIB_PREFIX causes shared libraries to
21  #            be built without "lib" as prefix. (The libraries will be named pcre.dll,  #            be built without "lib" as prefix. (The libraries will be named
22  #            pcreposix.dll and pcrecpp.dll).  #            pcre.dll, pcreposix.dll and pcrecpp.dll).
23  #            if "ON", NON_STANDARD_LIB_SUFFIX causes shared libraries to  #            if "ON", NON_STANDARD_LIB_SUFFIX causes shared libraries to
24  #            be built with suffix of "-0.dll". (The libraries will be named  #            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  #            libpcre-0.dll, libpcreposix-0.dll and libpcrecpp-0.dll - same names
26  #            built by default with Configure and Make.  #            built by default with Configure and Make.
27  # 2008-01-23 PH removed the automatic build of pcredemo.  # 2008-01-23 PH removed the automatic build of pcredemo.
28    # 2008-04-22 PH modified READLINE support so it finds NCURSES when needed.
29    # 2008-07-03 PH updated for revised UCP property support (change of files)
30    # 2009-03-23 PH applied Steven Van Ingelgem's patch to change the name
31    #            CMAKE_BINARY_DIR to PROJECT_BINARY_DIR so that it works when PCRE
32    #            is included within another project.
33    # 2009-03-23 PH applied a modified version of Steven Van Ingelgem's patches to
34    #            add options to stop the building of pcregrep and the tests, and
35    #            to disable the final configuration report.
36    # 2009-04-11 PH applied Christian Ehrlicher's patch to show compiler flags that
37    #            are set by specifying a release type.
38    # 2010-01-02 PH added test for stdint.h
39    # 2010-03-02 PH addes test for inttypes.h
40    
41  PROJECT(PCRE C CXX)  PROJECT(PCRE C CXX)
42    
43  CMAKE_MINIMUM_REQUIRED(VERSION 2.4.6)  CMAKE_MINIMUM_REQUIRED(VERSION 2.4.6)
44    
45  SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) # for FindReadline.cmake  SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) # for FindReadline.cmake
46    
47  # external packages  # external packages
48  FIND_PACKAGE( BZip2 )  FIND_PACKAGE( BZip2 )
# Line 45  INCLUDE(CheckFunctionExists) Line 57  INCLUDE(CheckFunctionExists)
57  INCLUDE(CheckTypeSize)  INCLUDE(CheckTypeSize)
58    
59  CHECK_INCLUDE_FILE(dirent.h     HAVE_DIRENT_H)  CHECK_INCLUDE_FILE(dirent.h     HAVE_DIRENT_H)
60    CHECK_INCLUDE_FILE(stdint.h     HAVE_STDINT_H)
61    CHECK_INCLUDE_FILE(inttypes.h   HAVE_INTTYPES_H)
62  CHECK_INCLUDE_FILE(sys/stat.h   HAVE_SYS_STAT_H)  CHECK_INCLUDE_FILE(sys/stat.h   HAVE_SYS_STAT_H)
63  CHECK_INCLUDE_FILE(sys/types.h  HAVE_SYS_TYPES_H)  CHECK_INCLUDE_FILE(sys/types.h  HAVE_SYS_TYPES_H)
64  CHECK_INCLUDE_FILE(unistd.h     HAVE_UNISTD_H)  CHECK_INCLUDE_FILE(unistd.h     HAVE_UNISTD_H)
# Line 103  SET(PCRE_SUPPORT_UTF8 OFF CACHE BOOL Line 117  SET(PCRE_SUPPORT_UTF8 OFF CACHE BOOL
117  SET(PCRE_SUPPORT_BSR_ANYCRLF OFF CACHE BOOL  SET(PCRE_SUPPORT_BSR_ANYCRLF OFF CACHE BOOL
118      "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")
119    
120    OPTION(PCRE_SHOW_REPORT    "Show the final configuration report" ON)
121    OPTION(PCRE_BUILD_PCREGREP "Build pcregrep" ON)
122    OPTION(PCRE_BUILD_TESTS    "Build the tests" ON)
123    
124    IF (PCRE_BUILD_TESTS)
125      IF (NOT PCRE_BUILD_PCREGREP)
126        MESSAGE(STATUS "** Building tests requires pcregrep: PCRE_BUILD_PCREGREP forced ON")
127        SET(PCRE_BUILD_PCREGREP ON)
128      ENDIF(NOT PCRE_BUILD_PCREGREP)
129    ENDIF(PCRE_BUILD_TESTS)
130    
131  IF (MINGW)  IF (MINGW)
132    OPTION(NON_STANDARD_LIB_PREFIX    OPTION(NON_STANDARD_LIB_PREFIX
# Line 178  IF(PCRE_SUPPORT_UNICODE_PROPERTIES) Line 202  IF(PCRE_SUPPORT_UNICODE_PROPERTIES)
202          SET(SUPPORT_UCP 1)          SET(SUPPORT_UCP 1)
203  ENDIF(PCRE_SUPPORT_UNICODE_PROPERTIES)  ENDIF(PCRE_SUPPORT_UNICODE_PROPERTIES)
204    
205    # This next one used to contain
206    #       SET(PCRETEST_LIBS ${READLINE_LIBRARY})
207    # but I was advised to add the NCURSES test as well, along with
208    # some modifications to cmake/FindReadline.cmake which should
209    # make it possible to override the default if necessary. PH
210    
211  IF(PCRE_SUPPORT_LIBREADLINE)  IF(PCRE_SUPPORT_LIBREADLINE)
212          SET(SUPPORT_LIBREADLINE 1)          SET(SUPPORT_LIBREADLINE 1)
213          SET(PCRETEST_LIBS ${READLINE_LIBRARY})          SET(PCRETEST_LIBS ${READLINE_LIBRARY} ${NCURSES_LIBRARY})
214  ENDIF(PCRE_SUPPORT_LIBREADLINE)  ENDIF(PCRE_SUPPORT_LIBREADLINE)
215    
216  IF(PCRE_SUPPORT_LIBZ)  IF(PCRE_SUPPORT_LIBZ)
# Line 224  IF(PCRE_NO_RECURSE) Line 254  IF(PCRE_NO_RECURSE)
254  ENDIF(PCRE_NO_RECURSE)  ENDIF(PCRE_NO_RECURSE)
255    
256  # Output files  # Output files
   
257  CONFIGURE_FILE(config-cmake.h.in  CONFIGURE_FILE(config-cmake.h.in
258                 ${CMAKE_BINARY_DIR}/config.h                 ${PROJECT_BINARY_DIR}/config.h
259                 @ONLY)                 @ONLY)
260    
261  CONFIGURE_FILE(pcre.h.generic  CONFIGURE_FILE(pcre.h.generic
262                 ${CMAKE_BINARY_DIR}/pcre.h                 ${PROJECT_BINARY_DIR}/pcre.h
263                 COPYONLY)                 COPYONLY)
264    
265  # What about pcre-config and libpcre.pc?  # What about pcre-config and libpcre.pc?
266    
267  IF(PCRE_BUILD_PCRECPP)  IF(PCRE_BUILD_PCRECPP)
268          CONFIGURE_FILE(pcre_stringpiece.h.in          CONFIGURE_FILE(pcre_stringpiece.h.in
269                         ${CMAKE_BINARY_DIR}/pcre_stringpiece.h                         ${PROJECT_BINARY_DIR}/pcre_stringpiece.h
270                         @ONLY)                         @ONLY)
271    
272          CONFIGURE_FILE(pcrecpparg.h.in          CONFIGURE_FILE(pcrecpparg.h.in
273                         ${CMAKE_BINARY_DIR}/pcrecpparg.h                         ${PROJECT_BINARY_DIR}/pcrecpparg.h
274                         @ONLY)                         @ONLY)
275  ENDIF(PCRE_BUILD_PCRECPP)  ENDIF(PCRE_BUILD_PCRECPP)
276    
# Line 257  IF(PCRE_REBUILD_CHARTABLES) Line 286  IF(PCRE_REBUILD_CHARTABLES)
286      COMMENT "Generating character tables (pcre_chartables.c) for current locale"      COMMENT "Generating character tables (pcre_chartables.c) for current locale"
287      DEPENDS dftables      DEPENDS dftables
288      COMMAND ${DFTABLES_EXE}      COMMAND ${DFTABLES_EXE}
289      ARGS        ${CMAKE_BINARY_DIR}/pcre_chartables.c      ARGS        ${PROJECT_BINARY_DIR}/pcre_chartables.c
290      OUTPUT      ${CMAKE_BINARY_DIR}/pcre_chartables.c      OUTPUT      ${PROJECT_BINARY_DIR}/pcre_chartables.c
291    )    )
292  ELSE(PCRE_REBUILD_CHARTABLES)  ELSE(PCRE_REBUILD_CHARTABLES)
293    CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/pcre_chartables.c.dist    CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/pcre_chartables.c.dist
294                      ${CMAKE_BINARY_DIR}/pcre_chartables.c                      ${PROJECT_BINARY_DIR}/pcre_chartables.c
295                      COPYONLY)                      COPYONLY)
296  ENDIF(PCRE_REBUILD_CHARTABLES)  ENDIF(PCRE_REBUILD_CHARTABLES)
297    
298  # Source code  # Source code
299    
300  SET(PCRE_HEADERS ${CMAKE_BINARY_DIR}/pcre.h)  SET(PCRE_HEADERS ${PROJECT_BINARY_DIR}/pcre.h)
301    
302  SET(PCRE_SOURCES  SET(PCRE_SOURCES
303    ${CMAKE_BINARY_DIR}/pcre_chartables.c    ${PROJECT_BINARY_DIR}/pcre_chartables.c
304    pcre_compile.c    pcre_compile.c
305    pcre_config.c    pcre_config.c
306    pcre_dfa_exec.c    pcre_dfa_exec.c
# Line 287  SET(PCRE_SOURCES Line 316  SET(PCRE_SOURCES
316    pcre_study.c    pcre_study.c
317    pcre_tables.c    pcre_tables.c
318    pcre_try_flipped.c    pcre_try_flipped.c
319    pcre_ucp_searchfuncs.c    pcre_ucd.c
320    pcre_valid_utf8.c    pcre_valid_utf8.c
321    pcre_version.c    pcre_version.c
322    pcre_xclass.c    pcre_xclass.c
# Line 300  SET(PCREPOSIX_SOURCES pcreposix.c) Line 329  SET(PCREPOSIX_SOURCES pcreposix.c)
329  SET(PCRECPP_HEADERS  SET(PCRECPP_HEADERS
330    pcrecpp.h    pcrecpp.h
331    pcre_scanner.h    pcre_scanner.h
332    ${CMAKE_BINARY_DIR}/pcrecpparg.h    ${PROJECT_BINARY_DIR}/pcrecpparg.h
333    ${CMAKE_BINARY_DIR}/pcre_stringpiece.h    ${PROJECT_BINARY_DIR}/pcre_stringpiece.h
334  )  )
335    
336  SET(PCRECPP_SOURCES  SET(PCRECPP_SOURCES
# Line 325  IF(WIN32) Line 354  IF(WIN32)
354    SET(CMAKE_DEBUG_POSTFIX "d")    SET(CMAKE_DEBUG_POSTFIX "d")
355  ENDIF(WIN32)  ENDIF(WIN32)
356    
357    SET(targets)
358    
359  # Libraries  # Libraries
360  # pcre  # pcre
361  ADD_LIBRARY(pcre ${PCRE_HEADERS} ${PCRE_SOURCES} ${CMAKE_BINARY_DIR}/config.h)  ADD_LIBRARY(pcre ${PCRE_HEADERS} ${PCRE_SOURCES} ${PROJECT_BINARY_DIR}/config.h)
362    SET(targets ${targets} pcre)
363  ADD_LIBRARY(pcreposix ${PCREPOSIX_HEADERS} ${PCREPOSIX_SOURCES})  ADD_LIBRARY(pcreposix ${PCREPOSIX_HEADERS} ${PCREPOSIX_SOURCES})
364    SET(targets ${targets} pcreposix)
365  TARGET_LINK_LIBRARIES(pcreposix pcre)  TARGET_LINK_LIBRARIES(pcreposix pcre)
366  IF(MINGW AND NOT PCRE_STATIC)  IF(MINGW AND NOT PCRE_STATIC)
367    IF(NON_STANDARD_LIB_PREFIX)    IF(NON_STANDARD_LIB_PREFIX)
# Line 348  ENDIF(MINGW AND NOT PCRE_STATIC) Line 381  ENDIF(MINGW AND NOT PCRE_STATIC)
381  # pcrecpp  # pcrecpp
382  IF(PCRE_BUILD_PCRECPP)  IF(PCRE_BUILD_PCRECPP)
383    ADD_LIBRARY(pcrecpp ${PCRECPP_HEADERS} ${PCRECPP_SOURCES})    ADD_LIBRARY(pcrecpp ${PCRECPP_HEADERS} ${PCRECPP_SOURCES})
384    SET(targets ${targets} pcrecpp)
385    TARGET_LINK_LIBRARIES(pcrecpp pcre)    TARGET_LINK_LIBRARIES(pcrecpp pcre)
386    
387    IF(MINGW AND NOT PCRE_STATIC)    IF(MINGW AND NOT PCRE_STATIC)
# Line 368  ENDIF(PCRE_BUILD_PCRECPP) Line 402  ENDIF(PCRE_BUILD_PCRECPP)
402    
403  # Executables  # Executables
404    
 ADD_EXECUTABLE(pcretest pcretest.c)  
 TARGET_LINK_LIBRARIES(pcretest pcreposix ${PCRETEST_LIBS})  
   
 ADD_EXECUTABLE(pcregrep pcregrep.c)  
 TARGET_LINK_LIBRARIES(pcregrep pcreposix ${PCREGREP_LIBS})  
   
405  # Removed by PH (2008-01-23) because pcredemo shouldn't really be built  # Removed by PH (2008-01-23) because pcredemo shouldn't really be built
406  # automatically, and it gave trouble in some environments anyway.  # automatically, and it gave trouble in some environments anyway.
407  # ADD_EXECUTABLE(pcredemo pcredemo.c)  # ADD_EXECUTABLE(pcredemo pcredemo.c)
# Line 383  TARGET_LINK_LIBRARIES(pcregrep pcreposix Line 411  TARGET_LINK_LIBRARIES(pcregrep pcreposix
411  #         SET_TARGET_PROPERTIES(pcredemo PROPERTIES COMPILE_FLAGS "-DPCRE_STATIC")  #         SET_TARGET_PROPERTIES(pcredemo PROPERTIES COMPILE_FLAGS "-DPCRE_STATIC")
412  # ENDIF(NOT BUILD_SHARED_LIBS)  # ENDIF(NOT BUILD_SHARED_LIBS)
413    
414  IF(PCRE_BUILD_PCRECPP)  IF(PCRE_BUILD_PCREGREP)
415          ADD_EXECUTABLE(pcrecpp_unittest pcrecpp_unittest.cc)    ADD_EXECUTABLE(pcregrep pcregrep.c)
416          TARGET_LINK_LIBRARIES(pcrecpp_unittest pcrecpp)    SET(targets ${targets} pcregrep)
417  IF(MINGW AND NON_STANDARD_LIB_NAMES AND NOT PCRE_STATIC)    TARGET_LINK_LIBRARIES(pcregrep pcreposix ${PCREGREP_LIBS})
418  SET_TARGET_PROPERTIES(pcrecpp  ENDIF(PCRE_BUILD_PCREGREP)
                         PROPERTIES PREFIX ""  
 )  
 ENDIF(MINGW AND NON_STANDARD_LIB_NAMES AND NOT PCRE_STATIC)  
   
419    
         ADD_EXECUTABLE(pcre_scanner_unittest pcre_scanner_unittest.cc)  
         TARGET_LINK_LIBRARIES(pcre_scanner_unittest pcrecpp)  
   
         ADD_EXECUTABLE(pcre_stringpiece_unittest pcre_stringpiece_unittest.cc)  
         TARGET_LINK_LIBRARIES(pcre_stringpiece_unittest pcrecpp)  
 ENDIF(PCRE_BUILD_PCRECPP)  
420    
421  # Testing  # Testing
422    IF(PCRE_BUILD_TESTS)
423      ENABLE_TESTING()
424    
425  ENABLE_TESTING()    ADD_EXECUTABLE(pcretest pcretest.c)
426      SET(targets ${targets} pcretest)
427  GET_TARGET_PROPERTY(PCREGREP_EXE pcregrep DEBUG_LOCATION)    TARGET_LINK_LIBRARIES(pcretest pcreposix ${PCRETEST_LIBS})
428  GET_TARGET_PROPERTY(PCRETEST_EXE pcretest DEBUG_LOCATION)  
429      IF(PCRE_BUILD_PCRECPP)
430        ADD_EXECUTABLE(pcrecpp_unittest pcrecpp_unittest.cc)
431        SET(targets ${targets} pcrecpp_unittest)
432        TARGET_LINK_LIBRARIES(pcrecpp_unittest pcrecpp)
433        IF(MINGW AND NON_STANDARD_LIB_NAMES AND NOT PCRE_STATIC)
434          SET_TARGET_PROPERTIES(pcrecpp
435                            PROPERTIES PREFIX ""
436          )
437        ENDIF(MINGW AND NON_STANDARD_LIB_NAMES AND NOT PCRE_STATIC)
438    
 # Write out a CTest configuration file that sets some needed environment  
 # variables for the test scripts.  
 #  
 FILE(WRITE ${CMAKE_BINARY_DIR}/CTestCustom.ctest  
 "# This is a generated file.  
 SET(ENV{srcdir} ${CMAKE_SOURCE_DIR})  
 SET(ENV{pcregrep} ${PCREGREP_EXE})  
 SET(ENV{pcretest} ${PCRETEST_EXE})  
 ")  
   
 IF(UNIX)  
         ADD_TEST(pcre_test      ${CMAKE_SOURCE_DIR}/RunTest)  
         ADD_TEST(pcre_grep_test ${CMAKE_SOURCE_DIR}/RunGrepTest)  
 ENDIF(UNIX)  
 IF(WIN32)  
         ADD_TEST(pcre_test cmd /C ${CMAKE_SOURCE_DIR}/RunTest.bat)  
 ENDIF(WIN32)  
439    
440  GET_TARGET_PROPERTY(PCRECPP_UNITTEST_EXE      ADD_EXECUTABLE(pcre_scanner_unittest pcre_scanner_unittest.cc)
441                      pcrecpp_unittest      SET(targets ${targets} pcre_scanner_unittest)
442                      DEBUG_LOCATION)      TARGET_LINK_LIBRARIES(pcre_scanner_unittest pcrecpp)
443    
444  GET_TARGET_PROPERTY(PCRE_SCANNER_UNITTEST_EXE      ADD_EXECUTABLE(pcre_stringpiece_unittest pcre_stringpiece_unittest.cc)
445                      pcre_scanner_unittest      SET(targets ${targets} pcre_stringpiece_unittest)
446                      DEBUG_LOCATION)      TARGET_LINK_LIBRARIES(pcre_stringpiece_unittest pcrecpp)
447      ENDIF(PCRE_BUILD_PCRECPP)
448  GET_TARGET_PROPERTY(PCRE_STRINGPIECE_UNITTEST_EXE  
449                      pcre_stringpiece_unittest    GET_TARGET_PROPERTY(PCREGREP_EXE pcregrep DEBUG_LOCATION)
450                      DEBUG_LOCATION)    GET_TARGET_PROPERTY(PCRETEST_EXE pcretest DEBUG_LOCATION)
451    
452  ADD_TEST(pcrecpp_test          ${PCRECPP_UNITTEST_EXE})    # Write out a CTest configuration file that sets some needed environment
453  ADD_TEST(pcre_scanner_test     ${PCRE_SCANNER_UNITTEST_EXE})    # variables for the test scripts.
454  ADD_TEST(pcre_stringpiece_test ${PCRE_STRINGPIECE_UNITTEST_EXE})    #
455      FILE(WRITE ${PROJECT_BINARY_DIR}/CTestCustom.ctest
456      "# This is a generated file.
457      SET(ENV{srcdir} ${PROJECT_SOURCE_DIR})
458      SET(ENV{pcregrep} ${PCREGREP_EXE})
459      SET(ENV{pcretest} ${PCRETEST_EXE})
460      ")
461    
462      IF(UNIX)
463              ADD_TEST(pcre_test      ${PROJECT_SOURCE_DIR}/RunTest)
464              ADD_TEST(pcre_grep_test ${PROJECT_SOURCE_DIR}/RunGrepTest)
465      ENDIF(UNIX)
466      IF(WIN32)
467              ADD_TEST(pcre_test cmd /C ${PROJECT_SOURCE_DIR}/RunTest.bat)
468      ENDIF(WIN32)
469    
470      GET_TARGET_PROPERTY(PCRECPP_UNITTEST_EXE
471                          pcrecpp_unittest
472                          DEBUG_LOCATION)
473    
474      GET_TARGET_PROPERTY(PCRE_SCANNER_UNITTEST_EXE
475                          pcre_scanner_unittest
476                          DEBUG_LOCATION)
477    
478      GET_TARGET_PROPERTY(PCRE_STRINGPIECE_UNITTEST_EXE
479                          pcre_stringpiece_unittest
480                          DEBUG_LOCATION)
481    
482      ADD_TEST(pcrecpp_test          ${PCRECPP_UNITTEST_EXE})
483      ADD_TEST(pcre_scanner_test     ${PCRE_SCANNER_UNITTEST_EXE})
484      ADD_TEST(pcre_stringpiece_test ${PCRE_STRINGPIECE_UNITTEST_EXE})
485    ENDIF(PCRE_BUILD_TESTS)
486    
487  # Installation  # Installation
   
488  SET(CMAKE_INSTALL_ALWAYS 1)  SET(CMAKE_INSTALL_ALWAYS 1)
489    
490  INSTALL(TARGETS pcre pcreposix pcregrep pcretest  INSTALL(TARGETS ${targets}
491          RUNTIME DESTINATION bin          RUNTIME DESTINATION bin
492          LIBRARY DESTINATION lib          LIBRARY DESTINATION lib
493          ARCHIVE DESTINATION lib)          ARCHIVE DESTINATION lib)
494    
495  INSTALL(FILES ${PCRE_HEADERS} ${PCREPOSIX_HEADERS} DESTINATION include)  INSTALL(FILES ${PCRE_HEADERS} ${PCREPOSIX_HEADERS} DESTINATION include)
496    
497  FILE(GLOB html ${CMAKE_SOURCE_DIR}/doc/html/*.html)  FILE(GLOB html ${PROJECT_SOURCE_DIR}/doc/html/*.html)
498  FILE(GLOB man1 ${CMAKE_SOURCE_DIR}/doc/*.1)  FILE(GLOB man1 ${PROJECT_SOURCE_DIR}/doc/*.1)
499  FILE(GLOB man3 ${CMAKE_SOURCE_DIR}/doc/*.3)  FILE(GLOB man3 ${PROJECT_SOURCE_DIR}/doc/*.3)
500    
501  IF(PCRE_BUILD_PCRECPP)  IF(PCRE_BUILD_PCRECPP)
         INSTALL(TARGETS pcrecpp  
                 RUNTIME DESTINATION bin  
                 LIBRARY DESTINATION lib  
                 ARCHIVE DESTINATION lib)  
502          INSTALL(FILES ${PCRECPP_HEADERS} DESTINATION include)          INSTALL(FILES ${PCRECPP_HEADERS} DESTINATION include)
503  ELSE(PCRE_BUILD_PCRECPP)  ELSE(PCRE_BUILD_PCRECPP)
504          # Remove pcrecpp.3          # Remove pcrecpp.3
# Line 485  ELSE(BUILD_SHARED_LIBS) Line 523  ELSE(BUILD_SHARED_LIBS)
523    SET(BUILD_STATIC_LIBS ON)    SET(BUILD_STATIC_LIBS ON)
524  ENDIF(BUILD_SHARED_LIBS)  ENDIF(BUILD_SHARED_LIBS)
525    
526  MESSAGE(STATUS "")  IF(PCRE_SHOW_REPORT)
527  MESSAGE(STATUS "")    STRING(TOUPPER "${CMAKE_BUILD_TYPE}" buildtype)
528  MESSAGE(STATUS "PCRE configuration summary:")    IF (CMAKE_C_FLAGS)
529  MESSAGE(STATUS "")      SET(cfsp " ")
530  MESSAGE(STATUS "  Install prefix .................. : " ${CMAKE_INSTALL_PREFIX})    ENDIF(CMAKE_C_FLAGS)
531  MESSAGE(STATUS "  C compiler ...................... : " ${CMAKE_C_COMPILER})    IF (CMAKE_CXX_FLAGS)
532  MESSAGE(STATUS "  C++ compiler .................... : " ${CMAKE_CXX_COMPILER})      SET(cxxfsp " ")
533  MESSAGE(STATUS "  C compiler flags ................ : " ${CMAKE_C_FLAGS})   #FIXME    ENDIF(CMAKE_CXX_FLAGS)
534  MESSAGE(STATUS "  C++ compiler flags .............. : " ${CMAKE_CXX_FLAGS}) #FIXME    MESSAGE(STATUS "")
535  MESSAGE(STATUS "")    MESSAGE(STATUS "")
536  MESSAGE(STATUS "  Build C++ library ............... : " ${PCRE_BUILD_PCRECPP})    MESSAGE(STATUS "PCRE configuration summary:")
537  MESSAGE(STATUS "  Enable UTF-8 support ............ : " ${PCRE_SUPPORT_UNICODE_PROPERTIES})    MESSAGE(STATUS "")
538  MESSAGE(STATUS "  Unicode properties .............. : " ${PCRE_SUPPORT_UNICODE_PROPERTIES})    MESSAGE(STATUS "  Install prefix .................. : ${CMAKE_INSTALL_PREFIX}")
539  MESSAGE(STATUS "  Newline char/sequence ........... : " ${PCRE_NEWLINE})    MESSAGE(STATUS "  C compiler ...................... : ${CMAKE_C_COMPILER}")
540  MESSAGE(STATUS "  \\R matches only ANYCRLF ......... : " ${PCRE_SUPPORT_BSR_ANYCRLF})    MESSAGE(STATUS "  C++ compiler .................... : ${CMAKE_CXX_COMPILER}")
541  MESSAGE(STATUS "  EBCDIC coding ................... : " ${PCRE_EBCDIC})    MESSAGE(STATUS "  C compiler flags ................ : ${CMAKE_C_FLAGS}${cfsp}${CMAKE_C_FLAGS_${buildtype}}")
542  MESSAGE(STATUS "  Rebuild char tables ............. : " ${PCRE_REBUILD_CHARTABLES})    MESSAGE(STATUS "  C++ compiler flags .............. : ${CMAKE_CXX_FLAGS}${cxxfsp}${CMAKE_CXX_FLAGS_${buildtype}}")
543  MESSAGE(STATUS "  No stack recursion .............. : " ${PCRE_NO_RECURSE})    MESSAGE(STATUS "")
544  MESSAGE(STATUS "  POSIX mem threshold ............. : " ${PCRE_POSIX_MALLOC_THRESHOLD})    MESSAGE(STATUS "  Build C++ library ............... : ${PCRE_BUILD_PCRECPP}")
545  MESSAGE(STATUS "  Internal link size .............. : " ${PCRE_LINK_SIZE})    MESSAGE(STATUS "  Enable UTF-8 support ............ : ${PCRE_SUPPORT_UNICODE_PROPERTIES}")
546  MESSAGE(STATUS "  Match limit ..................... : " ${PCRE_MATCH_LIMIT})    MESSAGE(STATUS "  Unicode properties .............. : ${PCRE_SUPPORT_UNICODE_PROPERTIES}")
547  MESSAGE(STATUS "  Match limit recursion ........... : " ${PCRE_MATCH_LIMIT_RECURSION})    MESSAGE(STATUS "  Newline char/sequence ........... : ${PCRE_NEWLINE}")
548  MESSAGE(STATUS "  Build shared libs ............... : " ${BUILD_SHARED_LIBS})    MESSAGE(STATUS "  \\R matches only ANYCRLF ......... : ${PCRE_SUPPORT_BSR_ANYCRLF}")
549  MESSAGE(STATUS "  Build static libs ............... : " ${BUILD_STATIC_LIBS})    MESSAGE(STATUS "  EBCDIC coding ................... : ${PCRE_EBCDIC}")
550  IF(ZLIB_FOUND)    MESSAGE(STATUS "  Rebuild char tables ............. : ${PCRE_REBUILD_CHARTABLES}")
551    MESSAGE(STATUS "  Link pcregrep with libz ......... : " ${PCRE_SUPPORT_LIBZ})    MESSAGE(STATUS "  No stack recursion .............. : ${PCRE_NO_RECURSE}")
552  ELSE(ZLIB_FOUND)    MESSAGE(STATUS "  POSIX mem threshold ............. : ${PCRE_POSIX_MALLOC_THRESHOLD}")
553    MESSAGE(STATUS "  Link pcregrep with libz ......... : None" )    MESSAGE(STATUS "  Internal link size .............. : ${PCRE_LINK_SIZE}")
554  ENDIF(ZLIB_FOUND)    MESSAGE(STATUS "  Match limit ..................... : ${PCRE_MATCH_LIMIT}")
555  IF(BZIP2_FOUND)    MESSAGE(STATUS "  Match limit recursion ........... : ${PCRE_MATCH_LIMIT_RECURSION}")
556    MESSAGE(STATUS "  Link pcregrep with libbz2 ....... : " ${PCRE_SUPPORT_LIBBZ2})    MESSAGE(STATUS "  Build shared libs ............... : ${BUILD_SHARED_LIBS}")
557  ELSE(BZIP2_FOUND)    MESSAGE(STATUS "  Build static libs ............... : ${BUILD_STATIC_LIBS}")
558    MESSAGE(STATUS "  Link pcregrep with libbz2 ....... : None" )    MESSAGE(STATUS "  Build pcregrep .................. : ${PCRE_BUILD_PCREGREP}")
559  ENDIF(BZIP2_FOUND)    MESSAGE(STATUS "  Build tests (implies pcretest) .. : ${PCRE_BUILD_TESTS}")
560  IF(NOT PCRE_SUPPORT_LIBREADLINE)    IF(ZLIB_FOUND)
561    MESSAGE(STATUS "  Link pcretest with libreadline .. : None" )      MESSAGE(STATUS "  Link pcregrep with libz ......... : ${PCRE_SUPPORT_LIBZ}")
562  ELSE(NOT PCRE_SUPPORT_LIBREADLINE)    ELSE(ZLIB_FOUND)
563    MESSAGE(STATUS "  Link pcretest with libreadline .. : " ${PCRE_SUPPORT_LIBREADLINE})      MESSAGE(STATUS "  Link pcregrep with libz ......... : None" )
564  ENDIF(NOT PCRE_SUPPORT_LIBREADLINE)    ENDIF(ZLIB_FOUND)
565  IF(MINGW AND NOT PCRE_STATIC)    IF(BZIP2_FOUND)
566    MESSAGE(STATUS "  Non-standard dll names (prefix) . : " ${NON_STANDARD_LIB_PREFIX})      MESSAGE(STATUS "  Link pcregrep with libbz2 ....... : ${PCRE_SUPPORT_LIBBZ2}")
567    MESSAGE(STATUS "  Non-standard dll names (suffix) . : " ${NON_STANDARD_LIB_SUFFIX})    ELSE(BZIP2_FOUND)
568  ENDIF(MINGW AND NOT PCRE_STATIC)      MESSAGE(STATUS "  Link pcregrep with libbz2 ....... : None" )
569  MESSAGE(STATUS "")    ENDIF(BZIP2_FOUND)
570      IF(NOT PCRE_SUPPORT_LIBREADLINE)
571        MESSAGE(STATUS "  Link pcretest with libreadline .. : None" )
572      ELSE(NOT PCRE_SUPPORT_LIBREADLINE)
573        MESSAGE(STATUS "  Link pcretest with libreadline .. : ${PCRE_SUPPORT_LIBREADLINE}")
574      ENDIF(NOT PCRE_SUPPORT_LIBREADLINE)
575      IF(MINGW AND NOT PCRE_STATIC)
576        MESSAGE(STATUS "  Non-standard dll names (prefix) . : ${NON_STANDARD_LIB_PREFIX}")
577        MESSAGE(STATUS "  Non-standard dll names (suffix) . : ${NON_STANDARD_LIB_SUFFIX}")
578      ENDIF(MINGW AND NOT PCRE_STATIC)
579      MESSAGE(STATUS "")
580    ENDIF(PCRE_SHOW_REPORT)
581    
582  # end CMakeLists.txt  # end CMakeLists.txt

Legend:
Removed from v.318  
changed lines
  Added in v.495

  ViewVC Help
Powered by ViewVC 1.1.5