mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-11-02 20:30:45 -06:00
Replace GNC_CONFIGURE(2) with configure_file
This commit is contained in:
1 parent
19412de221
commit
f11eab36d9
38 files changed
+139
-238
No files matched your search
@@ -8,31 +8,4 @@ IF (APPLE)
|
||||
ENDIF(APPLE)
|
||||
|
||||
|
||||
SET(CMAKE_COMMAND_TMP "")
|
||||
IF (${CMAKE_VERSION} VERSION_GREATER 3.1)
|
||||
SET(CMAKE_COMMAND_TMP ${CMAKE_COMMAND} -E env)
|
||||
ENDIF()
|
||||
|
||||
SET(schema-targets csv-exp-gschema csv-imp-gschema
|
||||
generic-import-gschema gnome-gschema gnome-utils-gschema qif-imp-gschema)
|
||||
|
||||
IF (WITH_AQBANKING)
|
||||
LIST(APPEND schema-targets aqb-gschema)
|
||||
ENDIF (WITH_AQBANKING)
|
||||
|
||||
IF (WITH_OFX)
|
||||
LIST(APPEND schema-targets ofx-gschema)
|
||||
ENDIF (WITH_OFX)
|
||||
|
||||
SET(SCHEMA_BUILD_DIR ${DATADIR_BUILD}/glib-2.0/schemas)
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${SCHEMA_BUILD_DIR}/gschemas.compiled
|
||||
COMMAND ${CMAKE_COMMAND_TMP} ${GLIB_COMPILE_SCHEMAS} ${SCHEMA_BUILD_DIR}
|
||||
DEPENDS ${schema-targets}
|
||||
)
|
||||
|
||||
ADD_CUSTOM_TARGET(compiled-schemas ALL DEPENDS ${SCHEMA_BUILD_DIR}/gschemas.compiled)
|
||||
|
||||
INSTALL(FILES ${SCHEMA_BUILD_DIR}/gschemas.compiled DESTINATION ${CMAKE_INSTALL_DATADIR}/glib-2.0/schemas)
|
||||
|
||||
SET_DIST_LIST(cmake_DIST CMakeLists.txt README_CMAKE.txt cmake_uninstall.cmake.in)
|
||||
Reference in new issue
Block a user