Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.Words per C++ API funziona con CMake per qualsiasi sistema operativo GNU/Linux. Può essere scaricato dal sito ufficiale.
Supponiamo di avere il seguente progetto CMake:
CMakeLists.txt:
cmake_minimum_required(VERSION 3.18 FATAL_ERROR)
project(app CXX)
add_executable(app main.cpp)main.cpp:
int main()
{
return 0;
}Seguire le istruzioni riportate di seguito per configurare manualmente Aspose.Words per C++ nel tuo CMake:
Copia le cartelle Aspose.Words.Cpp e CodePorting.Native.Cs2Cpp_api_*.* in cui hai CMakeLists.txt
Aggiungi le seguenti righe a te CMakeLists.txt:
# find Aspose.Words for C++ package and it's dependencies
find_package(CodePorting.Native.Cs2Cpp REQUIRED CONFIG PATHS ${CMAKE_CURRENT_SOURCE_DIR} NO_DEFAULT_PATH)
find_package(Aspose.Words.Cpp REQUIRED CONFIG PATHS ${CMAKE_CURRENT_SOURCE_DIR} NO_DEFAULT_PATH)
find_package(Threads REQUIRED)
# Link target application with Aspose.Words for C++
target_link_libraries(app PRIVATE Aspose::Words Threads::Threads)
Ora puoi costruire la tua applicazione usando Aspose.Words per C++:
cd <path_to_dir_with_CMakeLists.txt>
cmake -S . -B build -D CMAKE_BUILD_TYPE=Release
cmake --build build
./build/app
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.