2019-07-09 11:40:29 -05:00
|
|
|
set(MODULEPATH ${CMAKE_SOURCE_DIR}/libgnucash/app-utils)
|
2016-01-18 10:33:34 -06:00
|
|
|
|
2018-05-03 16:18:15 -05:00
|
|
|
set(APP_UTILS_TEST_INCLUDE_DIRS
|
2017-08-10 06:56:00 -05:00
|
|
|
${CMAKE_BINARY_DIR}/common # for config.h
|
|
|
|
${CMAKE_SOURCE_DIR}/common/test-core
|
|
|
|
${CMAKE_SOURCE_DIR}/libgnucash/app-utils
|
|
|
|
${CMAKE_SOURCE_DIR}/libgnucash/engine # for qof.h
|
|
|
|
${CMAKE_SOURCE_DIR}/libgnucash/engine/test-core
|
2019-09-21 17:28:09 -05:00
|
|
|
${GIO_INCLUDE_DIRS}
|
|
|
|
${GUILE_INCLUDE_DIRS}
|
2016-01-18 10:33:34 -06:00
|
|
|
)
|
|
|
|
|
2022-07-10 14:04:24 -05:00
|
|
|
set(APP_UTILS_TEST_LIBS
|
|
|
|
gnc-app-utils
|
|
|
|
gnc-expressions
|
|
|
|
gnc-test-engine
|
|
|
|
test-core
|
|
|
|
${GIO_LDFLAGS}
|
|
|
|
${GUILE_LDFLAGS})
|
2016-01-18 10:33:34 -06:00
|
|
|
|
2018-05-03 16:18:15 -05:00
|
|
|
macro(add_app_utils_test _TARGET _SOURCE_FILES)
|
|
|
|
gnc_add_test(${_TARGET} "${_SOURCE_FILES}" APP_UTILS_TEST_INCLUDE_DIRS APP_UTILS_TEST_LIBS)
|
|
|
|
endmacro()
|
2016-01-18 10:33:34 -06:00
|
|
|
|
2018-05-03 16:18:15 -05:00
|
|
|
gnc_add_test_with_guile(test-exp-parser test-exp-parser.c
|
2022-08-23 11:22:56 -05:00
|
|
|
APP_UTILS_TEST_INCLUDE_DIRS APP_UTILS_TEST_LIBS
|
|
|
|
)
|
|
|
|
add_dependencies(test-exp-parser scm-expressions)
|
2018-05-03 16:18:15 -05:00
|
|
|
add_app_utils_test(test-print-parse-amount test-print-parse-amount.cpp)
|
2021-09-26 07:07:51 -05:00
|
|
|
gnc_add_test_with_guile(test-sx test-sx.cpp
|
|
|
|
APP_UTILS_TEST_INCLUDE_DIRS APP_UTILS_TEST_LIBS
|
|
|
|
)
|
2016-01-18 10:33:34 -06:00
|
|
|
|
2022-09-01 14:40:50 -05:00
|
|
|
set(test_gnc_quotes_SOURCES
|
|
|
|
gtest-gnc-quotes.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(test_gnc_quotes_INCLUDES
|
|
|
|
${CMAKE_BINARY_DIR}/common # for config.h
|
|
|
|
${MODULEPATH}
|
|
|
|
)
|
|
|
|
|
|
|
|
set(test_gnc_quotes_LIBS
|
|
|
|
gnc-engine
|
|
|
|
gtest
|
|
|
|
${Boost_FILESYSTEM_LIBRARY}
|
2022-09-10 18:18:32 -05:00
|
|
|
${Boost_LOCALE_LIBRARY}
|
2022-09-01 14:40:50 -05:00
|
|
|
${Boost_PROPERTY_TREE_LIBRARY}
|
|
|
|
${Boost_SYSTEM_LIBRARY}
|
|
|
|
)
|
2023-02-28 06:15:00 -06:00
|
|
|
gnc_add_test(test-gnc-quotes "${test_gnc_quotes_SOURCES}" test_gnc_quotes_INCLUDES test_gnc_quotes_LIBS
|
|
|
|
"GTEST_FILTER=-GncQuotesTest.online_wiggle")
|
2019-07-09 11:40:29 -05:00
|
|
|
|
2018-05-03 16:18:15 -05:00
|
|
|
set(GUILE_DEPENDS
|
2017-12-19 16:28:47 -06:00
|
|
|
scm-test-engine
|
2017-10-31 18:33:08 -05:00
|
|
|
scm-app-utils
|
2018-02-16 16:28:46 -06:00
|
|
|
scm-core-utils
|
|
|
|
scm-engine
|
2019-11-10 11:15:34 -06:00
|
|
|
scm-core-utils
|
2017-10-31 18:33:08 -05:00
|
|
|
gncmod-backend-xml
|
|
|
|
)
|
|
|
|
|
2020-12-26 19:23:28 -06:00
|
|
|
set_dist_list(test_app_utils_DIST
|
|
|
|
CMakeLists.txt
|
2022-09-01 14:40:50 -05:00
|
|
|
gtest-gnc-quotes.cpp
|
2020-12-26 19:23:28 -06:00
|
|
|
test-exp-parser.c
|
|
|
|
test-print-parse-amount.cpp
|
|
|
|
test-sx.cpp
|
|
|
|
${test_app_utils_scheme_SOURCES}
|
|
|
|
${test_app_utils_SOURCES}
|
|
|
|
)
|