CLion Build options (WT - Witty build and boost launch commands)

Answered

 Hi,

I am looking for a way to integrate these two commands to my build and launch page in browser. The two commands below work on my system. I am just trying to reduce always going to Terminal to type these commands.

It would be great if someone could let me know how I can create a specific type of project that will also insert the path into the build and launch.

and yes BTW newb.

 

1. Builds an wt executable file

g++ -std=c++14 -o wthello main.cpp -I/usr/local/include -L/usr/local/lib -lwthttp -lwt -lboost_system -lboost_filesystem -lboost_program_options

2. Launches the executable in a browser.

/Users/path/to/CLionProjects/wthello/wthello.wt --docroot . --http-listen 0.0.0.0:8080

 

I am using CLion 2017.3.3

Mac OSX High Sierra

Latest version of WT

 

Thank you!

0
1 comment

Hi!

For the first step, you need to create a CMake project and add a boost dependency (see examples at https://cmake.org/cmake/help/v3.10/module/FindBoost.html). For the second step, you might try creating a sh script and providing it via `Run | Edit Configurations | Executable`. 

0

Please sign in to leave a comment.