CMakeLists.txt (gnucash-5.0.tar.bz2) | : | CMakeLists.txt (gnucash-5.1.tar.bz2) | ||
---|---|---|---|---|
add_subdirectory(test) | ||||
set(csv_export_SOURCES | set(csv_export_SOURCES | |||
gnc-plugin-csv-export.c | gnc-plugin-csv-export.c | |||
csv-export-helpers.cpp | ||||
assistant-csv-export.c | assistant-csv-export.c | |||
csv-tree-export.c | csv-tree-export.cpp | |||
csv-transactions-export.c | csv-transactions-export.cpp | |||
) | ) | |||
# Add dependency on config.h | # Add dependency on config.h | |||
set_source_files_properties (${csv_export_SOURCES} PROPERTIES OBJECT_DEPENDS ${C ONFIG_H}) | set_source_files_properties (${csv_export_SOURCES} PROPERTIES OBJECT_DEPENDS ${C ONFIG_H}) | |||
set(csv_export_noinst_HEADERS | set(csv_export_noinst_HEADERS | |||
gnc-plugin-csv-export.h | gnc-plugin-csv-export.h | |||
assistant-csv-export.h | assistant-csv-export.h | |||
csv-export-helpers.hpp | ||||
csv-tree-export.h | csv-tree-export.h | |||
csv-transactions-export.h | csv-transactions-export.h | |||
) | ) | |||
add_library(gnc-csv-export ${csv_export_noinst_HEADERS} ${csv_export_SOURCES}) | add_library(gnc-csv-export ${csv_export_noinst_HEADERS} ${csv_export_SOURCES}) | |||
target_link_libraries(gnc-csv-export | target_link_libraries(gnc-csv-export | |||
gnc-register-gnome | gnc-register-gnome | |||
gnc-register-core | gnc-register-core | |||
gnc-ledger-core | gnc-ledger-core | |||
skipping to change at line 47 | skipping to change at line 52 | |||
if (APPLE) | if (APPLE) | |||
set_target_properties (gnc-csv-export PROPERTIES INSTALL_NAME_DIR "${CMAKE_INS TALL_FULL_LIBDIR}/gnucash") | set_target_properties (gnc-csv-export PROPERTIES INSTALL_NAME_DIR "${CMAKE_INS TALL_FULL_LIBDIR}/gnucash") | |||
endif() | endif() | |||
install(TARGETS gnc-csv-export | install(TARGETS gnc-csv-export | |||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/gnucash | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/gnucash | |||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/gnucash | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/gnucash | |||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) | |||
# No headers to install. | # No headers to install. | |||
set_dist_list (csv_export_DIST CMakeLists.txt | set_local_dist (csv_export_DIST_local | |||
${csv_export_SOURCES} ${csv_export_noinst_HEADERS}) | CMakeLists.txt | |||
${csv_export_SOURCES} | ||||
${csv_export_noinst_HEADERS} | ||||
) | ||||
set (csv_export_DIST | ||||
${csv_export_DIST_local} | ||||
${test_csv_export_DIST} | ||||
PARENT_SCOPE | ||||
) | ||||
End of changes. 5 change blocks. | ||||
2 lines changed or deleted | 7 lines changed or added |