Use 'tde_setup_paths' macro to setup required paths.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit fbe27fc928)
r14.0.x
Michele Calgaro 2 years ago
parent 874e171aea
commit c5f9bde2d3
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -43,13 +43,10 @@ include( TDEMacros )
tde_set_project_version( ) tde_set_project_version( )
##### paths setup ############################### ##### setup install paths #######################
tde_setup_install_path( EXEC_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}" ) include( TDESetupPaths )
tde_setup_install_path( BIN_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/bin" ) tde_setup_paths( )
tde_setup_install_path( LIB_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX}" )
tde_setup_install_path( INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include/${CMAKE_PROJECT_NAME}" )
tde_setup_install_path( PKGCONFIG_INSTALL_DIR "${LIB_INSTALL_DIR}/pkgconfig" )
##### user requested options #################### ##### user requested options ####################
@ -108,7 +105,7 @@ else( )
endif( ) endif( )
string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" PC_EXEC_PREFIX ${EXEC_INSTALL_PREFIX} ) string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" PC_EXEC_PREFIX ${EXEC_INSTALL_PREFIX} )
string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" PC_INCLUDE_DIR ${INCLUDE_INSTALL_DIR} ) string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" PC_INCLUDE_DIR ${INCLUDE_INSTALL_DIR}/${CMAKE_PROJECT_NAME} )
string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" PC_LIB_DIR ${LIB_INSTALL_DIR} ) string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" PC_LIB_DIR ${LIB_INSTALL_DIR} )
configure_file( arts.pc.cmake arts.pc @ONLY ) configure_file( arts.pc.cmake arts.pc @ONLY )
install( FILES ${CMAKE_CURRENT_BINARY_DIR}/arts.pc DESTINATION ${PKGCONFIG_INSTALL_DIR} ) install( FILES ${CMAKE_CURRENT_BINARY_DIR}/arts.pc DESTINATION ${PKGCONFIG_INSTALL_DIR} )

@ -32,7 +32,7 @@ install( FILES
fft.h artsflow.idl audioio.h resample.h cpuinfo.h fft.h artsflow.idl audioio.h resample.h cpuinfo.h
bufferqueue.h gslschedule.h bufferqueue.h gslschedule.h
${CMAKE_CURRENT_BINARY_DIR}/artsflow.h ${CMAKE_CURRENT_BINARY_DIR}/artsflow.h
DESTINATION ${INCLUDE_INSTALL_DIR} ) DESTINATION ${INCLUDE_INSTALL_DIR}/${CMAKE_PROJECT_NAME} )
##### other data ################################ ##### other data ################################

@ -41,7 +41,7 @@ install( FILES
gslengine.h gslwaveosc.h gslwavechunk.h gslengine.h gslwaveosc.h gslwavechunk.h
gsldatahandle-mad.h gslosctable.h gsloscillator.h gsldatahandle-mad.h gslosctable.h gsloscillator.h
${CMAKE_CURRENT_BINARY_DIR}/gslconfig.h ${CMAKE_CURRENT_BINARY_DIR}/gslconfig.h
DESTINATION ${INCLUDE_INSTALL_DIR}/gsl ) DESTINATION ${INCLUDE_INSTALL_DIR}/${CMAKE_PROJECT_NAME}/gsl )
##### gsl (static lib) ########################## ##### gsl (static lib) ##########################

@ -18,9 +18,9 @@ include_directories(
##### headers ################################### ##### headers ###################################
install( FILES install(
giomanager.h FILES giomanager.h
DESTINATION ${INCLUDE_INSTALL_DIR} ) DESTINATION ${INCLUDE_INSTALL_DIR}/${CMAKE_PROJECT_NAME} )
##### gmcop (shared lib) ######################## ##### gmcop (shared lib) ########################

@ -44,7 +44,7 @@ install( FILES
weakreference.h dynamicrequest.h anyref.h debug.h weakreference.h dynamicrequest.h anyref.h debug.h
delayedreturn.h dynamicskeleton.h thread.h core.idl delayedreturn.h dynamicskeleton.h thread.h core.idl
${CMAKE_CURRENT_BINARY_DIR}/arts_export.h ${CMAKE_CURRENT_BINARY_DIR}/arts_export.h
DESTINATION ${INCLUDE_INSTALL_DIR} ) DESTINATION ${INCLUDE_INSTALL_DIR}/${CMAKE_PROJECT_NAME} )
##### mcop (shared library) ##################### ##### mcop (shared library) #####################

@ -27,9 +27,9 @@ link_directories(
##### headers ################################### ##### headers ###################################
install( FILES install(
qiomanager.h FILES qiomanager.h
DESTINATION ${INCLUDE_INSTALL_DIR} ) DESTINATION ${INCLUDE_INSTALL_DIR}/${CMAKE_PROJECT_NAME} )
##### qtmcop ############################## ##### qtmcop ##############################

@ -38,7 +38,7 @@ install( FILES
${CMAKE_CURRENT_BINARY_DIR}/artsversion.h ${CMAKE_CURRENT_BINARY_DIR}/artsversion.h
${CMAKE_CURRENT_BINARY_DIR}/soundserver.h ${CMAKE_CURRENT_BINARY_DIR}/soundserver.h
${CMAKE_CURRENT_BINARY_DIR}/kmedia2.h ${CMAKE_CURRENT_BINARY_DIR}/kmedia2.h
DESTINATION ${INCLUDE_INSTALL_DIR} ) DESTINATION ${INCLUDE_INSTALL_DIR}/${CMAKE_PROJECT_NAME} )
##### other data ################################ ##### other data ################################

Loading…
Cancel
Save