159
159
# - on unices to prevent symbol collisions when tracing applications that link
160
160
# against other versions of these libraries
162
set (ZLIB_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/zlib)
163
set (ZLIB_LIBRARIES z_bundled)
164
add_subdirectory (thirdparty/zlib EXCLUDE_FROM_ALL)
162
find_package (ZLIB REQUIRED)
166
163
include_directories (${ZLIB_INCLUDE_DIRS})
168
set (SNAPPY_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/snappy)
169
set (SNAPPY_LIBRARIES snappy_bundled)
166
# libSnappy doesn't ship a pc file, because it is made of hate
168
#find_package (SNAPPY REQUIRED)
169
set (SNAPPY_INCLUDE_DIRS "")
170
set (SNAPPY_LIBRARIES -lsnappy)
172
include_directories (${SNAPPY_INCLUDE_DIRS})
174
set (BUNDLED_SNAPPY_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/snappy)
175
set (BUNDLED_SNAPPY_LIBRARIES snappy_bundled)
170
176
add_subdirectory (thirdparty/snappy EXCLUDE_FROM_ALL)
172
include_directories (${SNAPPY_INCLUDE_DIRS})
174
set (PNG_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/libpng)
175
set (PNG_DEFINITIONS "")
176
set (PNG_LIBRARIES png_bundled)
178
add_subdirectory (thirdparty/libpng EXCLUDE_FROM_ALL)
179
find_package (PNG REQUIRED)
179
180
include_directories (${PNG_INCLUDE_DIR})
180
181
add_definitions (${PNG_DEFINITIONS})
254
256
-DAPITRACE_INSTALL_PREFIX="${CMAKE_INSTALL_PREFIX}"
255
257
-DAPITRACE_SCRIPTS_INSTALL_DIR="${CMAKE_INSTALL_PREFIX}/${SCRIPTS_INSTALL_DIR}"
256
258
-DAPITRACE_WRAPPERS_INSTALL_DIR="${CMAKE_INSTALL_PREFIX}/${WRAPPER_INSTALL_DIR}"
259
-DAPITRACE_CONFIG_INSTALL_DIR="${CONFIG_INSTALL_DIR}")
260
263
##############################################################################
360
363
DESTINATION ${DOC_INSTALL_DIR}
366
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
367
# Generate wrapper config file
368
add_custom_command(OUTPUT ${ARCH_SUBDIR}.conf
369
COMMAND sh -c "echo ${CMAKE_INSTALL_PREFIX}/${WRAPPER_INSTALL_DIR} >${ARCH_SUBDIR}.conf")
371
add_custom_target(wrapper_config
374
${CMAKE_BINARY_DIR}/${ARCH_SUBDIR}.conf
378
${CMAKE_BINARY_DIR}/${ARCH_SUBDIR}.conf
380
${CONFIG_INSTALL_DIR}
363
384
set (CPACK_PACKAGE_VERSION_MAJOR "3")
364
385
set (CPACK_PACKAGE_VERSION_MINOR "0")