Commit df91b06c authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum

[FIX] - pkg-config missed in this branch. This now also adds the pkg-config...

[FIX] - pkg-config missed in this branch. This now also adds the pkg-config functionality to the next bugfix release
parent 4b2ccebb
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
includedir=${prefix}/include
libdir=${exec_prefix}/lib
Name: openwalnut
Description: The OpenWalnut core library -- OpenWalnut is a tool for multi-modal medical and brain data visualization.
Version: 1.2.5
Cflags: -I${includedir}/openwalnut
Libs: -L${libdir} -lopenwalnut
Requires: openscenegraph eigen3
......@@ -68,6 +68,9 @@ SETUP_LIB_INSTALL( ${LibName} ${OW_LIBRARY_DIR_RELATIVE} "CORE" )
# NOTE: do not use ${TARGET_H_FILES}. The command requires a list
SETUP_DEV_INSTALL( ${LibName} ${OW_LIBRARY_DIR_RELATIVE} TARGET_H_FILES "include/openwalnut/core" "CORE_DEV" )
# The core does also provide some nice pkg-config file. Set this up and configure it to contain the correct install prefix
SETUP_CONFIGURED_FILE( "core-dev" "lib/pkgconfig/openwalnut.pc" "CORE_DEV" )
# ---------------------------------------------------------------------------------------------------------------------------------------------------
# Test Setup
# ---------------------------------------------------------------------------------------------------------------------------------------------------
......
......@@ -292,6 +292,20 @@ FUNCTION( SETUP_COMMON_DOC _target _component )
ENDIF()
ENDFUNCTION( SETUP_COMMON_DOC )
# This function configures the soecified file in the given resource. This is especially useful for scripts where to replace certain
# CMake variables (like pkg-config files).
# _resource the name of the resource in the resources directory
# _file the file in the the resource to configure
# _component the install component to which the file belongs
FUNCTION( SETUP_CONFIGURED_FILE _resource _file _component )
SET( ResourcesPath "${PROJECT_SOURCE_DIR}/../resources/${_resource}/" )
CONFIGURE_FILE( "${ResourcesPath}/${_file}" "${PROJECT_BINARY_DIR}/${_file}" @ONLY )
# Install the file
INSTALL( FILES "${PROJECT_BINARY_DIR}/${_file}" DESTINATION "."
COMPONENT ${_component}
)
ENDFUNCTION( SETUP_CONFIGURED_FILE )
# This function eases the process of copying and installing additional files which not reside in the resource path.
# It creates a target (ALL is depending on it) AND the INSTALL operation.
# _destination where to put them. This MUST be relative to the build dir and install dir.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment