/[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 317 by ph10, Wed Jan 23 18:02:23 2008 UTC revision 318 by ph10, Mon Jan 28 15:27:17 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  # 2008-01-22 Sheri added options for backward compatibility of library names when
19  #            building with minGW:  #            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 pcre.dll,
# Line 44  INCLUDE(CheckIncludeFileCXX) Line 44  INCLUDE(CheckIncludeFileCXX)
44  INCLUDE(CheckFunctionExists)  INCLUDE(CheckFunctionExists)
45  INCLUDE(CheckTypeSize)  INCLUDE(CheckTypeSize)
46    
47  CHECK_INCLUDE_FILE(dirent.h         HAVE_DIRENT_H)  CHECK_INCLUDE_FILE(dirent.h     HAVE_DIRENT_H)
48  CHECK_INCLUDE_FILE(sys/stat.h   HAVE_SYS_STAT_H)  CHECK_INCLUDE_FILE(sys/stat.h   HAVE_SYS_STAT_H)
49  CHECK_INCLUDE_FILE(sys/types.h  HAVE_SYS_TYPES_H)  CHECK_INCLUDE_FILE(sys/types.h  HAVE_SYS_TYPES_H)
50  CHECK_INCLUDE_FILE(unistd.h         HAVE_UNISTD_H)  CHECK_INCLUDE_FILE(unistd.h     HAVE_UNISTD_H)
51  CHECK_INCLUDE_FILE(windows.h    HAVE_WINDOWS_H)  CHECK_INCLUDE_FILE(windows.h    HAVE_WINDOWS_H)
52    
53  CHECK_INCLUDE_FILE_CXX(type_traits.h            HAVE_TYPE_TRAITS_H)  CHECK_INCLUDE_FILE_CXX(type_traits.h            HAVE_TYPE_TRAITS_H)
54  CHECK_INCLUDE_FILE_CXX(bits/type_traits.h       HAVE_BITS_TYPE_TRAITS_H)  CHECK_INCLUDE_FILE_CXX(bits/type_traits.h       HAVE_BITS_TYPE_TRAITS_H)
55    
56  CHECK_FUNCTION_EXISTS(bcopy     HAVE_BCOPY)  CHECK_FUNCTION_EXISTS(bcopy     HAVE_BCOPY)
57  CHECK_FUNCTION_EXISTS(memmove   HAVE_MEMMOVE)  CHECK_FUNCTION_EXISTS(memmove   HAVE_MEMMOVE)
58  CHECK_FUNCTION_EXISTS(strerror  HAVE_STRERROR)  CHECK_FUNCTION_EXISTS(strerror  HAVE_STRERROR)
59  CHECK_FUNCTION_EXISTS(strtoll   HAVE_STRTOLL)  CHECK_FUNCTION_EXISTS(strtoll   HAVE_STRTOLL)
60  CHECK_FUNCTION_EXISTS(strtoq    HAVE_STRTOQ)  CHECK_FUNCTION_EXISTS(strtoq    HAVE_STRTOQ)
61  CHECK_FUNCTION_EXISTS(_strtoi64 HAVE__STRTOI64)  CHECK_FUNCTION_EXISTS(_strtoi64 HAVE__STRTOI64)
62    
63  CHECK_TYPE_SIZE("long long"             LONG_LONG)  CHECK_TYPE_SIZE("long long"             LONG_LONG)
64  CHECK_TYPE_SIZE("unsigned long long"    UNSIGNED_LONG_LONG)  CHECK_TYPE_SIZE("unsigned long long"    UNSIGNED_LONG_LONG)
65    
66  # User-configurable options  # User-configurable options
67  #  #
# Line 103  SET(PCRE_SUPPORT_UTF8 OFF CACHE BOOL Line 103  SET(PCRE_SUPPORT_UTF8 OFF CACHE BOOL
103  SET(PCRE_SUPPORT_BSR_ANYCRLF OFF CACHE BOOL  SET(PCRE_SUPPORT_BSR_ANYCRLF OFF CACHE BOOL
104      "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")
105    
 SET(NON_STANDARD_LIB_PREFIX OFF CACHE BOOL  
    "ON=Shared libraries built in mingw will be named pcre.dll, etc., instead of libpcre.dll, etc.")  
106    
107  SET(NON_STANDARD_LIB_SUFFIX OFF CACHE BOOL  IF (MINGW)
108     "ON=Shared libraries built in mingw will be named libpcre-0.dll, etc., instead of libpcre.dll, etc.")    OPTION(NON_STANDARD_LIB_PREFIX
109             "ON=Shared libraries built in mingw will be named pcre.dll, etc., instead of libpcre.dll, etc."
110             OFF)
111    
112      OPTION(NON_STANDARD_LIB_SUFFIX
113             "ON=Shared libraries built in mingw will be named libpcre-0.dll, etc., instead of libpcre.dll, etc."
114             OFF)
115    ENDIF(MINGW)
116    
117  # bzip2 lib  # bzip2 lib
118  IF(BZIP2_FOUND)  IF(BZIP2_FOUND)
# Line 139  SET(pcre_have_type_traits 0) Line 144  SET(pcre_have_type_traits 0)
144  SET(pcre_have_bits_type_traits 0)  SET(pcre_have_bits_type_traits 0)
145    
146  IF(HAVE_TYPE_TRAITS_H)  IF(HAVE_TYPE_TRAITS_H)
147          SET(pcre_have_type_traits 1)          SET(pcre_have_type_traits 1)
148  ENDIF(HAVE_TYPE_TRAITS_H)  ENDIF(HAVE_TYPE_TRAITS_H)
149    
150  IF(HAVE_BITS_TYPE_TRAITS_H)  IF(HAVE_BITS_TYPE_TRAITS_H)
151          SET(pcre_have_bits_type_traits 1)          SET(pcre_have_bits_type_traits 1)
152  ENDIF(HAVE_BITS_TYPE_TRAITS_H)  ENDIF(HAVE_BITS_TYPE_TRAITS_H)
153    
154  SET(pcre_have_long_long 0)  SET(pcre_have_long_long 0)
155  SET(pcre_have_ulong_long 0)  SET(pcre_have_ulong_long 0)
156    
157  IF(HAVE_LONG_LONG)  IF(HAVE_LONG_LONG)
158          SET(pcre_have_long_long 1)          SET(pcre_have_long_long 1)
159  ENDIF(HAVE_LONG_LONG)  ENDIF(HAVE_LONG_LONG)
160    
161  IF(HAVE_UNSIGNED_LONG_LONG)  IF(HAVE_UNSIGNED_LONG_LONG)
162          SET(pcre_have_ulong_long 1)          SET(pcre_have_ulong_long 1)
163  ENDIF(HAVE_UNSIGNED_LONG_LONG)  ENDIF(HAVE_UNSIGNED_LONG_LONG)
164    
165  IF(NOT BUILD_SHARED_LIBS)  IF(NOT BUILD_SHARED_LIBS)
166          SET(PCRE_STATIC 1)          SET(PCRE_STATIC 1)
167  ENDIF(NOT BUILD_SHARED_LIBS)  ENDIF(NOT BUILD_SHARED_LIBS)
168    
169  IF(PCRE_SUPPORT_BSR_ANYCRLF)  IF(PCRE_SUPPORT_BSR_ANYCRLF)
170          SET(BSR_ANYCRLF 1)          SET(BSR_ANYCRLF 1)
171  ENDIF(PCRE_SUPPORT_BSR_ANYCRLF)  ENDIF(PCRE_SUPPORT_BSR_ANYCRLF)
172    
173  IF(PCRE_SUPPORT_UTF8 OR PCRE_SUPPORT_UNICODE_PROPERTIES)  IF(PCRE_SUPPORT_UTF8 OR PCRE_SUPPORT_UNICODE_PROPERTIES)
174          SET(SUPPORT_UTF8 1)          SET(SUPPORT_UTF8 1)
175  ENDIF(PCRE_SUPPORT_UTF8 OR PCRE_SUPPORT_UNICODE_PROPERTIES)  ENDIF(PCRE_SUPPORT_UTF8 OR PCRE_SUPPORT_UNICODE_PROPERTIES)
176    
177  IF(PCRE_SUPPORT_UNICODE_PROPERTIES)  IF(PCRE_SUPPORT_UNICODE_PROPERTIES)
178          SET(SUPPORT_UCP 1)          SET(SUPPORT_UCP 1)
179  ENDIF(PCRE_SUPPORT_UNICODE_PROPERTIES)  ENDIF(PCRE_SUPPORT_UNICODE_PROPERTIES)
180    
181  IF(PCRE_SUPPORT_LIBREADLINE)  IF(PCRE_SUPPORT_LIBREADLINE)
# Line 191  ENDIF(PCRE_SUPPORT_LIBBZ2) Line 196  ENDIF(PCRE_SUPPORT_LIBBZ2)
196  SET(NEWLINE "")  SET(NEWLINE "")
197    
198  IF(PCRE_NEWLINE STREQUAL "LF")  IF(PCRE_NEWLINE STREQUAL "LF")
199          SET(NEWLINE "10")          SET(NEWLINE "10")
200  ENDIF(PCRE_NEWLINE STREQUAL "LF")  ENDIF(PCRE_NEWLINE STREQUAL "LF")
201  IF(PCRE_NEWLINE STREQUAL "CR")  IF(PCRE_NEWLINE STREQUAL "CR")
202          SET(NEWLINE "13")          SET(NEWLINE "13")
203  ENDIF(PCRE_NEWLINE STREQUAL "CR")  ENDIF(PCRE_NEWLINE STREQUAL "CR")
204  IF(PCRE_NEWLINE STREQUAL "CRLF")  IF(PCRE_NEWLINE STREQUAL "CRLF")
205          SET(NEWLINE "3338")          SET(NEWLINE "3338")
206  ENDIF(PCRE_NEWLINE STREQUAL "CRLF")  ENDIF(PCRE_NEWLINE STREQUAL "CRLF")
207  IF(PCRE_NEWLINE STREQUAL "ANY")  IF(PCRE_NEWLINE STREQUAL "ANY")
208          SET(NEWLINE "-1")          SET(NEWLINE "-1")
209  ENDIF(PCRE_NEWLINE STREQUAL "ANY")  ENDIF(PCRE_NEWLINE STREQUAL "ANY")
210  IF(PCRE_NEWLINE STREQUAL "ANYCRLF")  IF(PCRE_NEWLINE STREQUAL "ANYCRLF")
211          SET(NEWLINE "-2")          SET(NEWLINE "-2")
212  ENDIF(PCRE_NEWLINE STREQUAL "ANYCRLF")  ENDIF(PCRE_NEWLINE STREQUAL "ANYCRLF")
213    
214  IF(NEWLINE STREQUAL "")  IF(NEWLINE STREQUAL "")
215          MESSAGE(FATAL_ERROR "The PCRE_NEWLINE variable must be set to one of the following values: \"LF\", \"CR\", \"CRLF\", \"ANY\", \"ANYCRLF\".")          MESSAGE(FATAL_ERROR "The PCRE_NEWLINE variable must be set to one of the following values: \"LF\", \"CR\", \"CRLF\", \"ANY\", \"ANYCRLF\".")
216  ENDIF(NEWLINE STREQUAL "")  ENDIF(NEWLINE STREQUAL "")
217    
218  IF(PCRE_EBCDIC)  IF(PCRE_EBCDIC)
219          SET(EBCDIC 1)          SET(EBCDIC 1)
220  ENDIF(PCRE_EBCDIC)  ENDIF(PCRE_EBCDIC)
221    
222  IF(PCRE_NO_RECURSE)  IF(PCRE_NO_RECURSE)
223          SET(NO_RECURSE 1)          SET(NO_RECURSE 1)
224  ENDIF(PCRE_NO_RECURSE)  ENDIF(PCRE_NO_RECURSE)
225    
226  # Output files  # Output files
# Line 231  CONFIGURE_FILE(pcre.h.generic Line 236  CONFIGURE_FILE(pcre.h.generic
236  # What about pcre-config and libpcre.pc?  # What about pcre-config and libpcre.pc?
237    
238  IF(PCRE_BUILD_PCRECPP)  IF(PCRE_BUILD_PCRECPP)
239          CONFIGURE_FILE(pcre_stringpiece.h.in          CONFIGURE_FILE(pcre_stringpiece.h.in
240                         ${CMAKE_BINARY_DIR}/pcre_stringpiece.h                         ${CMAKE_BINARY_DIR}/pcre_stringpiece.h
241                         @ONLY)                         @ONLY)
242    
243          CONFIGURE_FILE(pcrecpparg.h.in          CONFIGURE_FILE(pcrecpparg.h.in
244                         ${CMAKE_BINARY_DIR}/pcrecpparg.h                         ${CMAKE_BINARY_DIR}/pcrecpparg.h
245                         @ONLY)                         @ONLY)
246  ENDIF(PCRE_BUILD_PCRECPP)  ENDIF(PCRE_BUILD_PCRECPP)
247    
248  # Character table generation  # Character table generation
# Line 252  IF(PCRE_REBUILD_CHARTABLES) Line 257  IF(PCRE_REBUILD_CHARTABLES)
257      COMMENT "Generating character tables (pcre_chartables.c) for current locale"      COMMENT "Generating character tables (pcre_chartables.c) for current locale"
258      DEPENDS dftables      DEPENDS dftables
259      COMMAND ${DFTABLES_EXE}      COMMAND ${DFTABLES_EXE}
260      ARGS        ${CMAKE_BINARY_DIR}/pcre_chartables.c      ARGS        ${CMAKE_BINARY_DIR}/pcre_chartables.c
261      OUTPUT      ${CMAKE_BINARY_DIR}/pcre_chartables.c      OUTPUT      ${CMAKE_BINARY_DIR}/pcre_chartables.c
262    )    )
263  ELSE(PCRE_REBUILD_CHARTABLES)  ELSE(PCRE_REBUILD_CHARTABLES)
264    CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/pcre_chartables.c.dist    CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/pcre_chartables.c.dist
# Line 300  SET(PCRECPP_HEADERS Line 305  SET(PCRECPP_HEADERS
305  )  )
306    
307  SET(PCRECPP_SOURCES  SET(PCRECPP_SOURCES
308          pcrecpp.cc          pcrecpp.cc
309          pcre_scanner.cc          pcre_scanner.cc
310          pcre_stringpiece.cc          pcre_stringpiece.cc
311  )  )
312    
313  # Build setup  # Build setup
# Line 310  SET(PCRECPP_SOURCES Line 315  SET(PCRECPP_SOURCES
315  ADD_DEFINITIONS(-DHAVE_CONFIG_H)  ADD_DEFINITIONS(-DHAVE_CONFIG_H)
316    
317  IF(MSVC)  IF(MSVC)
318          ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE)          ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE)
319  ENDIF(MSVC)  ENDIF(MSVC)
320    
321  SET(CMAKE_INCLUDE_CURRENT_DIR 1)  SET(CMAKE_INCLUDE_CURRENT_DIR 1)
# Line 321  IF(WIN32) Line 326  IF(WIN32)
326  ENDIF(WIN32)  ENDIF(WIN32)
327    
328  # Libraries  # Libraries
329    # pcre
330  ADD_LIBRARY(pcre ${PCRE_HEADERS} ${PCRE_SOURCES} ${CMAKE_BINARY_DIR}/config.h)  ADD_LIBRARY(pcre ${PCRE_HEADERS} ${PCRE_SOURCES} ${CMAKE_BINARY_DIR}/config.h)
331  ADD_LIBRARY(pcreposix ${PCREPOSIX_HEADERS} ${PCREPOSIX_SOURCES})  ADD_LIBRARY(pcreposix ${PCREPOSIX_HEADERS} ${PCREPOSIX_SOURCES})
332  TARGET_LINK_LIBRARIES(pcreposix pcre)  TARGET_LINK_LIBRARIES(pcreposix pcre)
333    IF(MINGW AND NOT PCRE_STATIC)
334  IF(MINGW AND NON_STANDARD_LIB_PREFIX AND NOT PCRE_STATIC)    IF(NON_STANDARD_LIB_PREFIX)
335  SET_TARGET_PROPERTIES(pcre pcreposix      SET_TARGET_PROPERTIES(pcre pcreposix
336                          PROPERTIES PREFIX ""                          PROPERTIES PREFIX ""
337  )      )
338  ENDIF(MINGW AND NON_STANDARD_LIB_PREFIX AND NOT PCRE_STATIC)    ENDIF(NON_STANDARD_LIB_PREFIX)
339    
340  IF(MINGW AND NON_STANDARD_LIB_SUFFIX AND NOT PCRE_STATIC)    IF(NON_STANDARD_LIB_SUFFIX)
341  SET_TARGET_PROPERTIES(pcre pcreposix      SET_TARGET_PROPERTIES(pcre pcreposix
342                          PROPERTIES SUFFIX "-0.dll"                          PROPERTIES SUFFIX "-0.dll"
343  )      )
344  ENDIF(MINGW AND NON_STANDARD_LIB_SUFFIX AND NOT PCRE_STATIC)    ENDIF(NON_STANDARD_LIB_SUFFIX)
345    ENDIF(MINGW AND NOT PCRE_STATIC)
346    
347    
348    # pcrecpp
349  IF(PCRE_BUILD_PCRECPP)  IF(PCRE_BUILD_PCRECPP)
350    ADD_LIBRARY(pcrecpp ${PCRECPP_HEADERS} ${PCRECPP_SOURCES})    ADD_LIBRARY(pcrecpp ${PCRECPP_HEADERS} ${PCRECPP_SOURCES})
351    TARGET_LINK_LIBRARIES(pcrecpp pcre)    TARGET_LINK_LIBRARIES(pcrecpp pcre)
 IF(MINGW AND NON_STANDARD_LIB_PREFIX AND NOT PCRE_STATIC)  
 SET_TARGET_PROPERTIES(pcrecpp  
                         PROPERTIES PREFIX ""  
 )  
 ENDIF(MINGW AND NON_STANDARD_LIB_PREFIX AND NOT PCRE_STATIC)  
 IF(MINGW AND NON_STANDARD_LIB_SUFFIX AND NOT PCRE_STATIC)  
 SET_TARGET_PROPERTIES(pcrecpp  
                         PROPERTIES SUFFIX "-0.dll"  
 )  
 ENDIF(MINGW AND NON_STANDARD_LIB_SUFFIX AND NOT PCRE_STATIC)  
352    
353      IF(MINGW AND NOT PCRE_STATIC)
354        IF(NON_STANDARD_LIB_PREFIX)
355          SET_TARGET_PROPERTIES(pcrecpp
356                                PROPERTIES PREFIX ""
357          )
358        ENDIF(NON_STANDARD_LIB_PREFIX)
359    
360        IF(NON_STANDARD_LIB_SUFFIX)
361          SET_TARGET_PROPERTIES(pcrecpp
362                              PROPERTIES SUFFIX "-0.dll"
363          )
364        ENDIF(NON_STANDARD_LIB_SUFFIX)
365      ENDIF(MINGW AND NOT PCRE_STATIC)
366  ENDIF(PCRE_BUILD_PCRECPP)  ENDIF(PCRE_BUILD_PCRECPP)
367    
368    
369  # Executables  # Executables
370    
371  ADD_EXECUTABLE(pcretest pcretest.c)  ADD_EXECUTABLE(pcretest pcretest.c)
# Line 368  TARGET_LINK_LIBRARIES(pcregrep pcreposix Line 380  TARGET_LINK_LIBRARIES(pcregrep pcreposix
380  # TARGET_LINK_LIBRARIES(pcredemo pcreposix)  # TARGET_LINK_LIBRARIES(pcredemo pcreposix)
381  # IF(NOT BUILD_SHARED_LIBS)  # IF(NOT BUILD_SHARED_LIBS)
382  #     # make sure to not use declspec(dllimport) in static mode on windows  #     # make sure to not use declspec(dllimport) in static mode on windows
383  #         SET_TARGET_PROPERTIES(pcredemo PROPERTIES COMPILE_FLAGS "-DPCRE_STATIC")  #         SET_TARGET_PROPERTIES(pcredemo PROPERTIES COMPILE_FLAGS "-DPCRE_STATIC")
384  # ENDIF(NOT BUILD_SHARED_LIBS)  # ENDIF(NOT BUILD_SHARED_LIBS)
385    
386  IF(PCRE_BUILD_PCRECPP)  IF(PCRE_BUILD_PCRECPP)
387          ADD_EXECUTABLE(pcrecpp_unittest pcrecpp_unittest.cc)          ADD_EXECUTABLE(pcrecpp_unittest pcrecpp_unittest.cc)
388          TARGET_LINK_LIBRARIES(pcrecpp_unittest pcrecpp)          TARGET_LINK_LIBRARIES(pcrecpp_unittest pcrecpp)
389  IF(MINGW AND NON_STANDARD_LIB_NAMES AND NOT PCRE_STATIC)  IF(MINGW AND NON_STANDARD_LIB_NAMES AND NOT PCRE_STATIC)
390  SET_TARGET_PROPERTIES(pcrecpp  SET_TARGET_PROPERTIES(pcrecpp
391                          PROPERTIES PREFIX ""                          PROPERTIES PREFIX ""
# Line 381  SET_TARGET_PROPERTIES(pcrecpp Line 393  SET_TARGET_PROPERTIES(pcrecpp
393  ENDIF(MINGW AND NON_STANDARD_LIB_NAMES AND NOT PCRE_STATIC)  ENDIF(MINGW AND NON_STANDARD_LIB_NAMES AND NOT PCRE_STATIC)
394    
395    
396          ADD_EXECUTABLE(pcre_scanner_unittest pcre_scanner_unittest.cc)          ADD_EXECUTABLE(pcre_scanner_unittest pcre_scanner_unittest.cc)
397          TARGET_LINK_LIBRARIES(pcre_scanner_unittest pcrecpp)          TARGET_LINK_LIBRARIES(pcre_scanner_unittest pcrecpp)
398    
399          ADD_EXECUTABLE(pcre_stringpiece_unittest pcre_stringpiece_unittest.cc)          ADD_EXECUTABLE(pcre_stringpiece_unittest pcre_stringpiece_unittest.cc)
400          TARGET_LINK_LIBRARIES(pcre_stringpiece_unittest pcrecpp)          TARGET_LINK_LIBRARIES(pcre_stringpiece_unittest pcrecpp)
401  ENDIF(PCRE_BUILD_PCRECPP)  ENDIF(PCRE_BUILD_PCRECPP)
402    
403  # Testing  # Testing
# Line 406  SET(ENV{pcretest} ${PCRETEST_EXE}) Line 418  SET(ENV{pcretest} ${PCRETEST_EXE})
418  ")  ")
419    
420  IF(UNIX)  IF(UNIX)
421          ADD_TEST(pcre_test      ${CMAKE_SOURCE_DIR}/RunTest)          ADD_TEST(pcre_test      ${CMAKE_SOURCE_DIR}/RunTest)
422          ADD_TEST(pcre_grep_test ${CMAKE_SOURCE_DIR}/RunGrepTest)          ADD_TEST(pcre_grep_test ${CMAKE_SOURCE_DIR}/RunGrepTest)
423  ENDIF(UNIX)  ENDIF(UNIX)
424  IF(WIN32)  IF(WIN32)
425          ADD_TEST(pcre_test cmd /C ${CMAKE_SOURCE_DIR}/RunTest.bat)          ADD_TEST(pcre_test cmd /C ${CMAKE_SOURCE_DIR}/RunTest.bat)
426  ENDIF(WIN32)  ENDIF(WIN32)
427    
428  GET_TARGET_PROPERTY(PCRECPP_UNITTEST_EXE  GET_TARGET_PROPERTY(PCRECPP_UNITTEST_EXE
# Line 445  FILE(GLOB man1 ${CMAKE_SOURCE_DIR}/doc/* Line 457  FILE(GLOB man1 ${CMAKE_SOURCE_DIR}/doc/*
457  FILE(GLOB man3 ${CMAKE_SOURCE_DIR}/doc/*.3)  FILE(GLOB man3 ${CMAKE_SOURCE_DIR}/doc/*.3)
458    
459  IF(PCRE_BUILD_PCRECPP)  IF(PCRE_BUILD_PCRECPP)
460          INSTALL(TARGETS pcrecpp          INSTALL(TARGETS pcrecpp
461                  RUNTIME DESTINATION bin                  RUNTIME DESTINATION bin
462                  LIBRARY DESTINATION lib                  LIBRARY DESTINATION lib
463                  ARCHIVE DESTINATION lib)                  ARCHIVE DESTINATION lib)
464          INSTALL(FILES ${PCRECPP_HEADERS} DESTINATION include)          INSTALL(FILES ${PCRECPP_HEADERS} DESTINATION include)
465  ELSE(PCRE_BUILD_PCRECPP)  ELSE(PCRE_BUILD_PCRECPP)
466          # Remove pcrecpp.3          # Remove pcrecpp.3
467          FOREACH(man ${man3})          FOREACH(man ${man3})
468                  GET_FILENAME_COMPONENT(man_tmp ${man} NAME)                  GET_FILENAME_COMPONENT(man_tmp ${man} NAME)
469                  IF(NOT man_tmp STREQUAL "pcrecpp.3")                  IF(NOT man_tmp STREQUAL "pcrecpp.3")
470                          SET(man3_new ${man3} ${man})                          SET(man3_new ${man3} ${man})
471                  ENDIF(NOT man_tmp STREQUAL "pcrecpp.3")                  ENDIF(NOT man_tmp STREQUAL "pcrecpp.3")
472          ENDFOREACH(man ${man3})          ENDFOREACH(man ${man3})
473          SET(man3 ${man3_new})          SET(man3 ${man3_new})
474  ENDIF(PCRE_BUILD_PCRECPP)  ENDIF(PCRE_BUILD_PCRECPP)
475    
476    
# Line 500  MESSAGE(STATUS " Build static libs .... Line 512  MESSAGE(STATUS " Build static libs ....
512  IF(ZLIB_FOUND)  IF(ZLIB_FOUND)
513    MESSAGE(STATUS "  Link pcregrep with libz ......... : " ${PCRE_SUPPORT_LIBZ})    MESSAGE(STATUS "  Link pcregrep with libz ......... : " ${PCRE_SUPPORT_LIBZ})
514  ELSE(ZLIB_FOUND)  ELSE(ZLIB_FOUND)
515    MESSAGE(STATUS "  Link pcregrep with libz ......... :   zlib libraries not found!" )    MESSAGE(STATUS "  Link pcregrep with libz ......... : None" )
516  ENDIF(ZLIB_FOUND)  ENDIF(ZLIB_FOUND)
517  IF(BZIP2_FOUND)  IF(BZIP2_FOUND)
518    MESSAGE(STATUS "  Link pcregrep with libbz2 ....... : " ${PCRE_SUPPORT_LIBBZ2})    MESSAGE(STATUS "  Link pcregrep with libbz2 ....... : " ${PCRE_SUPPORT_LIBBZ2})
519  ELSE(BZIP2_FOUND)  ELSE(BZIP2_FOUND)
520    MESSAGE(STATUS "  Link pcregrep with libbz2 ....... :   bzip2 libraries not found!" )    MESSAGE(STATUS "  Link pcregrep with libbz2 ....... : None" )
521  ENDIF(BZIP2_FOUND)  ENDIF(BZIP2_FOUND)
522  MESSAGE(STATUS "  Link pcretest with libreadline .. : " ${PCRE_SUPPORT_LIBREADLINE})  IF(NOT PCRE_SUPPORT_LIBREADLINE)
523      MESSAGE(STATUS "  Link pcretest with libreadline .. : None" )
524    ELSE(NOT PCRE_SUPPORT_LIBREADLINE)
525      MESSAGE(STATUS "  Link pcretest with libreadline .. : " ${PCRE_SUPPORT_LIBREADLINE})
526    ENDIF(NOT PCRE_SUPPORT_LIBREADLINE)
527    IF(MINGW AND NOT PCRE_STATIC)
528      MESSAGE(STATUS "  Non-standard dll names (prefix) . : " ${NON_STANDARD_LIB_PREFIX})
529      MESSAGE(STATUS "  Non-standard dll names (suffix) . : " ${NON_STANDARD_LIB_SUFFIX})
530    ENDIF(MINGW AND NOT PCRE_STATIC)
531  MESSAGE(STATUS "")  MESSAGE(STATUS "")
532    
533  # end CMakeLists.txt  # end CMakeLists.txt

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

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12