|
|
@ -289,23 +289,26 @@ if (MSVC) |
|
|
|
set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> ${rc_flags} <DEFINES> /fo<OBJECT> <SOURCE>") |
|
|
|
set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> ${rc_flags} <DEFINES> /fo<OBJECT> <SOURCE>") |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Generate the version.rc file used elsewhere. |
|
|
|
configure_file(${protobuf_SOURCE_DIR}/cmake/version.rc.in ${CMAKE_CURRENT_BINARY_DIR}/version.rc @ONLY) |
|
|
|
configure_file(${protobuf_SOURCE_DIR}/cmake/version.rc.in ${CMAKE_CURRENT_BINARY_DIR}/version.rc @ONLY) |
|
|
|
endif (MSVC) |
|
|
|
set(protobuf_version_rc_file ${CMAKE_CURRENT_BINARY_DIR}/version.rc) |
|
|
|
|
|
|
|
|
|
|
|
include_directories( |
|
|
|
|
|
|
|
${ZLIB_INCLUDE_DIRECTORIES} |
|
|
|
|
|
|
|
${protobuf_BINARY_DIR} |
|
|
|
|
|
|
|
${protobuf_SOURCE_DIR}/src) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (MSVC) |
|
|
|
|
|
|
|
# Add the "lib" prefix for generated .lib outputs. |
|
|
|
# Add the "lib" prefix for generated .lib outputs. |
|
|
|
set(LIB_PREFIX lib) |
|
|
|
set(LIB_PREFIX lib) |
|
|
|
else (MSVC) |
|
|
|
else (MSVC) |
|
|
|
|
|
|
|
# No version.rc file. |
|
|
|
|
|
|
|
set(protobuf_version_rc_file) |
|
|
|
|
|
|
|
|
|
|
|
# When building with "make", "lib" prefix will be added automatically by |
|
|
|
# When building with "make", "lib" prefix will be added automatically by |
|
|
|
# the build tool. |
|
|
|
# the build tool. |
|
|
|
set(LIB_PREFIX) |
|
|
|
set(LIB_PREFIX) |
|
|
|
endif (MSVC) |
|
|
|
endif (MSVC) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
include_directories( |
|
|
|
|
|
|
|
${ZLIB_INCLUDE_DIRECTORIES} |
|
|
|
|
|
|
|
${protobuf_BINARY_DIR} |
|
|
|
|
|
|
|
${protobuf_SOURCE_DIR}/src) |
|
|
|
|
|
|
|
|
|
|
|
if (protobuf_UNICODE) |
|
|
|
if (protobuf_UNICODE) |
|
|
|
add_definitions(-DUNICODE -D_UNICODE) |
|
|
|
add_definitions(-DUNICODE -D_UNICODE) |
|
|
|
endif (protobuf_UNICODE) |
|
|
|
endif (protobuf_UNICODE) |
|
|
|