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. |
28 |
|
|
29 |
PROJECT(PCRE C CXX) |
PROJECT(PCRE C CXX) |
30 |
|
|
362 |
ADD_EXECUTABLE(pcregrep pcregrep.c) |
ADD_EXECUTABLE(pcregrep pcregrep.c) |
363 |
TARGET_LINK_LIBRARIES(pcregrep pcreposix ${PCREGREP_LIBS}) |
TARGET_LINK_LIBRARIES(pcregrep pcreposix ${PCREGREP_LIBS}) |
364 |
|
|
365 |
ADD_EXECUTABLE(pcredemo pcredemo.c) |
# Removed by PH (2008-01-23) because pcredemo shouldn't really be built |
366 |
TARGET_LINK_LIBRARIES(pcredemo pcreposix) |
# automatically, and it gave trouble in some environments anyway. |
367 |
IF(NOT BUILD_SHARED_LIBS) |
# ADD_EXECUTABLE(pcredemo pcredemo.c) |
368 |
# make sure to not use declspec(dllimport) in static mode on windows |
# TARGET_LINK_LIBRARIES(pcredemo pcreposix) |
369 |
SET_TARGET_PROPERTIES(pcredemo PROPERTIES COMPILE_FLAGS "-DPCRE_STATIC") |
# IF(NOT BUILD_SHARED_LIBS) |
370 |
ENDIF(NOT BUILD_SHARED_LIBS) |
# # make sure to not use declspec(dllimport) in static mode on windows |
371 |
|
# SET_TARGET_PROPERTIES(pcredemo PROPERTIES COMPILE_FLAGS "-DPCRE_STATIC") |
372 |
|
# ENDIF(NOT BUILD_SHARED_LIBS) |
373 |
|
|
374 |
IF(PCRE_BUILD_PCRECPP) |
IF(PCRE_BUILD_PCRECPP) |
375 |
ADD_EXECUTABLE(pcrecpp_unittest pcrecpp_unittest.cc) |
ADD_EXECUTABLE(pcrecpp_unittest pcrecpp_unittest.cc) |