make build folder and cd into it
mkdir build
cd build
build all the files!
cmake ..
cmake --build .
create a idl file then run
~/FastDDS/src/fastddsgen/scripts/fastddsgen HelloWorld.idl
in one terminal
cd build
.\DDSHelloWorldPublisher
in another terminal
cd build
.\
cmake .. -DCMAKE_INSTALL_PREFIX=~/Fast-DDS/install -DBUILD_SHARED_LIBS=ON
cmake --build .
cmake .. -DCMAKE_INSTALL_PREFIX=/opt/fastdds -DBUILD_SHARED_LIBS=ON
cmake --build .