For example to build with all defaults but LUA on
Code:
cmake -G "Unix Makefiles" $INSTALL_PATH/src/server/ -DEQEMU_BUILD_LUA=ON
(Note: 0, 1, TRUE, FALSE, ON, and OFF will work here)
From the cmake manpage
Code:
-D <var>:<type>=<value>
Create a cmake cache entry.
When cmake is first run in an empty build tree, it creates a CMakeCache.txt file and populates it with
customizable settings for the project. This option may be used to specify a setting that takes prior‐
ity over the project's default value. The option may be repeated for as many cache entries as
desired.
edit:
Code:
OPTION(EQEMU_BUILD_SERVER "Build the game server." ON)
OPTION(EQEMU_BUILD_LOGIN "Build the login server." OFF)
OPTION(EQEMU_BUILD_AZONE "Build azone utility." OFF)
OPTION(EQEMU_BUILD_TESTS "Build utility tests." OFF)
OPTION(EQEMU_BUILD_PERL "Build Perl parser." ON)
OPTION(EQEMU_BUILD_LUA "Build Lua parser." OFF)
OPTION(EQEMU_ENABLE_BOTS "Enable Bots" OFF)
OPTION(EQEMU_SANITIZE_LUA_LIBS "Sanitize Lua Libraries (Remove OS and IO standard libraries from being able to run)." ON)
And a list that isn't copied out of the cmake file without explantions :P
Code:
CMAKE_BUILD_TYPE:STRING=RelWithDebInfo
CMAKE_INSTALL_PREFIX:PATH=/usr/local
EQEMU_BUILD_AZONE:BOOL=OFF
EQEMU_BUILD_LOGIN:BOOL=OFF
EQEMU_BUILD_LUA:BOOL=OFF
EQEMU_BUILD_PERL:BOOL=ON
EQEMU_BUILD_SERVER:BOOL=ON
EQEMU_BUILD_TESTS:BOOL=OFF
EQEMU_DEBUG_LEVEL:STRING=5
EQEMU_ENABLE_BOTS:BOOL=OFF