SkillAgentSearch skills...

Ice2CppCmakeBuilder

generate cpp lib from ice-files

Install / Use

/learn @Ilyaferilo/Ice2CppCmakeBuilder
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Ice2CppCmakeBuilder

Build Status

Generate cpp library from ice-files in ice_interface_dir to ice_build_dir

usage:

cmake_minimum_required(VERSION 3.10)

project(IceInterface)

# build shared or static
set(icegen_BUILD_SHARED_LIBS ON)

include(iceGenerator.cmake)

# set ice gen folder
set(IceBuildDir ${CMAKE_CURRENT_BINARY_DIR}/ice_gen)

# generate ice2cpp
add_ice_library(hello ${CMAKE_CURRENT_SOURCE_DIR}/example/ice ${IceBuildDir}/ice)
add_ice_library(hello2 ${CMAKE_CURRENT_SOURCE_DIR}/example/ice2 ${IceBuildDir}/ice2)
add_dependencies(hello2 hello)
add_library(${PROJECT_NAME} STATIC test.cpp)
target_link_libraries(${PROJECT_NAME} PUBLIC hello hello2)
#include "second_hello.h"
#include "hello2.h"
#include <Ice/Communicator.h>
#include <iostream>

int stub()
{
    HelloIce::Hello2Prx f;
    f->say2Hello(12);
    HelloIce::HelloSecondPrx s;
    s->sayHello(34);
    return 12 + 20 + 10;
}

Related Skills

View on GitHub
GitHub Stars4
CategoryDevelopment
Updated1y ago
Forks0

Languages

CMake

Security Score

55/100

Audited on Aug 19, 2024

No findings