Skip to content

Commit

Permalink
build: Export cpp-base64 from WebAssemblyInterface
Browse files Browse the repository at this point in the history
For re-use by other modules.
  • Loading branch information
thewtex committed Nov 4, 2022
1 parent 65a5d10 commit 7cc7cfa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Expand Up @@ -93,6 +93,7 @@ set(rang_INCLUDE_DIR "${rang_SOURCE_DIR}/include")
set(libcbor_INCLUDE_DIR "${libcbor_SOURCE_DIR}/src")
set(libcbor_EXPORT_DIR "${libcbor_BINARY_DIR}/src")
set(libcbor_CONFIGURATION_DIR "${libcbor_BINARY_DIR}/")
set(cpp_base64_INCLUDE_DIR "${cpp_base64_SOURCE_DIR}/include")

set(BUILD_TESTING ${_itk_build_testing})
set(BUILD_SHARED_LIBS ${_itk_build_shared})
Expand All @@ -107,8 +108,9 @@ set(WebAssemblyInterface_INCLUDE_DIRS
${libcbor_INCLUDE_DIR}
${libcbor_EXPORT_DIR}
${libcbor_CONFIGURATION_DIR}
${cpp_base64_INCLUDE_DIR}
)
list(APPEND WebAssemblyInterface_LIBRARIES cbor)
list(APPEND WebAssemblyInterface_LIBRARIES cbor cpp-base64)

get_filename_component(_module_dir "${CMAKE_CURRENT_LIST_FILE}" PATH)
set(CMAKE_MODULE_PATH "${_module_dir}/CMake/" ${CMAKE_MODULE_PATH})
Expand All @@ -124,3 +126,6 @@ endif()
itk_module_target_label(cbor)
itk_module_target_export(cbor)
itk_module_target_install(cbor)
itk_module_target_label(cpp-base64)
itk_module_target_export(cpp-base64)
itk_module_target_install(cpp-base64)
Expand Up @@ -9,6 +9,7 @@ if (NOT TARGET libzstd_static)
endif()

find_package(ITK REQUIRED COMPONENTS WebAssemblyInterface)
include(${ITK_USE_FILE})

add_executable(compress-stringify compress-stringify.cxx)
target_include_directories(compress-stringify PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${zstd_lib_INCLUDE_DIR})
Expand Down

0 comments on commit 7cc7cfa

Please sign in to comment.