Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
C++の場合Aspose.Words APIは任意のGNU/Linuxオペレーティングシステムに対してCMakeで動作します。 それはある場合もあります 公式サイトからダウンロード.
次の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;
}手動で設定するには、以下の手順に従ってください C++の場合Aspose.Words あなたのCMakeで:
CMakeListsがあるAspose.Words.CppフォルダとCodePorting.Native.Cs2Cpp_api_*.*フォルダをコピーします。txt
次の行を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)
これで、次を使用してアプリケーションを構築できます C++の場合Aspose.Words:
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.