mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
link cryptopp to xlnt.test
This commit is contained in:
parent
f7e8e40ce2
commit
2bbcb9f7bf
|
@ -8,9 +8,10 @@ if(NOT COMBINED_PROJECT)
|
|||
add_subdirectory(${LIBRARY_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/source)
|
||||
endif()
|
||||
|
||||
# Tests uses the private interface of xlnt (source/detail) so it needs to explicitly link zlib
|
||||
# as zlib is not part of xlnt's default link interface
|
||||
# Tests uses the private interface of xlnt (source/detail) so it needs to explicitly link zlib and cryptopp
|
||||
# as they are not part of xlnt's default link interface
|
||||
find_package(ZLIB REQUIRED)
|
||||
find_package(CryptoPP REQUIRED)
|
||||
|
||||
file(GLOB CELL_TESTS ${CMAKE_CURRENT_SOURCE_DIR}/../source/cell/tests/test_*.hpp)
|
||||
file(GLOB CHARTS_TESTS ${CMAKE_CURRENT_SOURCE_DIR}/../source/charts/tests/test_*.hpp)
|
||||
|
@ -47,10 +48,13 @@ set(CXXTEST_PYTHON_TESTGEN_EXECUTABLE ${CXXTEST_ROOT_DIR}/bin/cxxtestgen)
|
|||
add_executable(xlnt.test ${TEST_HELPERS} ${TESTS} ${RUNNER})
|
||||
target_link_libraries(xlnt.test
|
||||
PRIVATE xlnt
|
||||
PRIVATE ${ZLIB_LIBRARIES})
|
||||
PRIVATE ${ZLIB_LIBRARIES}
|
||||
PRIVATE ${CRYPTOPP_LIBRARIES})
|
||||
target_include_directories(xlnt.test
|
||||
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../source
|
||||
PRIVATE ${ZLIB_INCLUDE_DIR}
|
||||
PRIVATE ${CRYPTOPP_INCLUDE_DIR}
|
||||
PRIVATE ${CXXTEST_INCLUDE_DIR}
|
||||
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../third-party/libstudxml)
|
||||
set(XLNT_TEST_DATA_DIR ${CMAKE_CURRENT_SOURCE_DIR}/data)
|
||||
|
|
Loading…
Reference in New Issue
Block a user