Skip to content

Commit

Permalink
Added -Dwith-tcl= to CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
petasis committed Aug 25, 2017
1 parent d93b37b commit d7cfd96
Showing 1 changed file with 7 additions and 26 deletions.
33 changes: 7 additions & 26 deletions README.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
In order to build Rivet with cmake, the following software is required:
In order to build TkDND with cmake, the following software is required:

a) cmake, version 3.2 or newer.

Compiling Rivet with cmake:
Compiling TkDND with cmake:
-------------------------------------------------------

1) Change the working directory to "cmake".
Expand All @@ -11,40 +11,21 @@ Compiling Rivet with cmake:
"cmake" directory):

cmake -E make_directory build
cmake -E chdir build cmake ..
cmake -E chdir build cmake -DCMAKE_INSTALL_PREFIX=../runtime ../..
cmake --build build --target all --clean-first
cmake --build build --target install

3) To install mod_rivet.so/Rivet library to a custom location,
the following commands can be used:

cmake -E make_directory build
cmake -E chdir build cmake \
-DAPACHE_MODULE_DIR=/home/tcl/rivet/branches/cmake/cmake/test/modules \
-DAPACHE_LIB_DIR=/home/tcl/rivet/branches/cmake/cmake/test/ ..
cmake --build build --config Release --target install

4) To install mod_rivet.so/Rivet library in a system where Apache Server is not
in a known location (i.e. under Windows), you can speficy APACHE_ROOT:

cmake -E make_directory build
cmake -E chdir build cmake -DAPACHE_ROOT=G:/Apache24 ..
cmake --build build --config Release --target install

5) Compile for 64 bits under Windows (for Visual Studio 2017):
3) Compile for 64 bits under Windows (for Visual Studio 2017):

cmake -E make_directory build_64
cmake -E chdir build_64 cmake -DAPACHE_ROOT=G:/Apache24 -G "Visual Studio 15 2017 Win64" ..
cmake -E chdir build_64 cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_INSTALL_PREFIX=../runtime ../..
cmake --build build_64 --config Release --target install

-G "..." can be set to any of the available 64-bit generators available under
the platform.

6) Specify Tcl at a non standard location:
4) Specify Tcl at a non standard location:

cmake -E make_directory build_64
cmake -E chdir build_64 cmake -DAPACHE_ROOT=G:/Apache24 -G "Visual Studio 15 2017 Win64" -Dwith-tcl=C:/TclApps/Tcl64/lib ..
cmake -E chdir build_64 cmake -G "Visual Studio 15 2017 Win64" -Dwith-tcl=C:/TclApps/Tcl64/lib -DCMAKE_INSTALL_PREFIX=../runtime ../..
cmake --build build_64 --config Release --target install

Instead of -Dwith-tcl=, -DTCL_ROOT=, -DTclStub_ROOT, and -DTCL_TCLSH= can be
specified as an alternative.

0 comments on commit d7cfd96

Please sign in to comment.