2015-12-07 11:17:08 -06:00
|
|
|
# Post install actions go here.
|
|
|
|
|
|
|
|
IF (APPLE)
|
|
|
|
INSTALL(CODE "EXECUTE_PROCESS(
|
|
|
|
COMMAND /usr/bin/install_name_tool -add_rpath ${CMAKE_INSTALL_PREFIX}/lib
|
|
|
|
-add_rpath ${CMAKE_INSTALL_PREFIX}/lib/gnucash
|
|
|
|
${CMAKE_INSTALL_PREFIX}/bin/gnucash)")
|
|
|
|
ENDIF(APPLE)
|
|
|
|
|
|
|
|
|
2017-02-01 21:48:46 -06:00
|
|
|
SET(CMAKE_COMMAND_TMP "")
|
|
|
|
IF (${CMAKE_VERSION} VERSION_GREATER 3.1)
|
|
|
|
SET(CMAKE_COMMAND_TMP ${CMAKE_COMMAND} -E env)
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
SET(schema-targets business-gnome-gschema csv-exp-gschema csv-imp-gschema
|
2017-11-23 09:50:16 -06:00
|
|
|
generic-import-gschema gnome-gschema gnome-utils-gschema qif-imp-gschema)
|
2017-02-01 21:48:46 -06:00
|
|
|
|
|
|
|
IF (WITH_AQBANKING)
|
2017-07-17 22:05:57 -05:00
|
|
|
LIST(APPEND schema-targets aqb-gschema)
|
2017-02-01 21:48:46 -06:00
|
|
|
ENDIF (WITH_AQBANKING)
|
|
|
|
|
2017-11-23 09:50:16 -06:00
|
|
|
IF (WITH_OFX)
|
|
|
|
LIST(APPEND schema-targets ofx-gschema)
|
|
|
|
ENDIF (WITH_OFX)
|
|
|
|
|
|
|
|
SET(SCHEMA_BUILD_DIR ${DATADIR_BUILD}/glib-2.0/schemas)
|
2017-02-01 21:48:46 -06:00
|
|
|
ADD_CUSTOM_COMMAND(
|
2017-11-23 09:50:16 -06:00
|
|
|
OUTPUT ${SCHEMA_BUILD_DIR}/gschemas.compiled
|
|
|
|
COMMAND ${CMAKE_COMMAND_TMP} ${GLIB_COMPILE_SCHEMAS} ${SCHEMA_BUILD_DIR}
|
2017-02-01 21:48:46 -06:00
|
|
|
DEPENDS ${schema-targets}
|
|
|
|
)
|
|
|
|
|
2017-11-23 09:50:16 -06:00
|
|
|
ADD_CUSTOM_TARGET(compiled-schemas ALL DEPENDS ${SCHEMA_BUILD_DIR}/gschemas.compiled)
|
|
|
|
|
|
|
|
INSTALL(FILES ${SCHEMA_BUILD_DIR}/gschemas.compiled DESTINATION ${DATADIR}/glib-2.0/schemas)
|
2017-02-01 21:48:46 -06:00
|
|
|
|
2017-07-17 22:05:57 -05:00
|
|
|
SET_DIST_LIST(cmake_DIST CMakeLists.txt README_CMAKE.txt cmake_uninstall.cmake.in)
|