Automate cmake options
I am trying to script every bit of my server install, I will post it when I am done in case it could be of some use to someone. One part I am stuck on is automating the cmake options.
I am using variables so this is what I have, is there any way to pass the answers to cmake? Code:
cmake -G "Unix Makefiles" -i $INSTALL_PATH/src/server/ |
For example to build with all defaults but LUA on
Code:
cmake -G "Unix Makefiles" $INSTALL_PATH/src/server/ -DEQEMU_BUILD_LUA=ON From the cmake manpage Code:
-D <var>:<type>=<value> Code:
OPTION(EQEMU_BUILD_SERVER "Build the game server." ON) Code:
CMAKE_BUILD_TYPE:STRING=RelWithDebInfo |
Yes, this is very helpful. Thank you so much.
|
All times are GMT -4. The time now is 05:26 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.