mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-22 08:57:17 -06:00
980daeec83
Until now it was only done when building from git, but there's no real reason not to do it as a normal build step in all cases. It may have been unreliable in the past. There's no evidence it still is.
28 lines
813 B
CMake
28 lines
813 B
CMake
# CMakeLists.txt for common/
|
|
|
|
# The subdirectories
|
|
add_subdirectory (cmake_modules)
|
|
add_subdirectory (debug)
|
|
add_subdirectory (test-core)
|
|
|
|
set(common_EXTRA_DIST
|
|
base-typemaps.i
|
|
config.h.cmake.in
|
|
gnc-test-env.pl
|
|
guile-mappings.h
|
|
platform.h)
|
|
|
|
|
|
set (SWIG_RUNTIME_H ${CMAKE_CURRENT_BINARY_DIR}/swig-runtime.h)
|
|
# Command to generate the swig-runtime.h header
|
|
add_custom_command (
|
|
OUTPUT ${SWIG_RUNTIME_H}
|
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
|
COMMAND ${SWIG_EXECUTABLE} -guile -external-runtime ${SWIG_RUNTIME_H}
|
|
)
|
|
add_custom_target (swig-runtime-h DEPENDS ${SWIG_RUNTIME_H})
|
|
|
|
set_local_dist(common_DIST_local CMakeLists.txt ${common_EXTRA_DIST})
|
|
|
|
set(common_DIST ${common_DIST_local} ${cmake_modules_DIST} ${debug_DIST} ${test_core_DIST} PARENT_SCOPE)
|