Skip to content

Stiffstream/sobjectizer-fetchcontent-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

How to build:

git clone https://github.com/stiffstream/sobjectizer-fetchcontent-demo
cd sobjectizer-fetchcontent-demo
mkdir cmake_build
cd cmake_build
cmake -DCMAKE_INSTALL_PREFIX=target ..
cmake --build . --config Release --target install

The result of the build process will be stored in target/bin subdirectory of cmake_build. To run the resulting application:

On Windows it's just:

target\bin\sample.so_5.hello_world.exe
target\bin\sample.so_5.hello_world_s.exe

On Linux the sample.so_5.hello_world_s can be simple invoked because of static linking to SO-5 library:

./target/bin/sample.so_5.hello_world_s

but for sample.so_5.hello_world an addition action is recuired becase SO-5 shared library is in target/lib. It means that LD_LIBRARY_PATH has to be modified:

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./target/bin \
  ./target/bin/sample.so_5.hello_world

About

Example of adding SObjectizer to a project via CMake's FetchContent

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published