Commit 4badb039 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Added missing with-flags to CMakeLists.txt

parent 5a238231
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -28,6 +28,8 @@ option(WITH_GMP "Build with GMP support" OFF)
option(WITH_TESTS "Build tests" ON)
option(WITH_COVERAGE "Enable code coverage reports from unit tests" OFF)
option(WITH_EXAMPLES "Compile the 'examples' directory" ON)
option(WITH_TOOLS "Compile the 'src/Tools' directory" ON)
option(WITH_PYTHON "Compile the Python bindings" ON)
option(WITH_TEMPLATES_INSTANTIATION "Enable explicit template instantiation" OFF)

# install paths relative to the cmake's prefix
@@ -437,6 +439,8 @@ message( " WITH_GMP=${WITH_GMP}" )
message( "   WITH_TESTS=${WITH_TESTS}" )
message( "   WITH_COVERAGE=${WITH_COVERAGE}" )
message( "   WITH_EXAMPLES=${WITH_EXAMPLES}" )
message( "   WITH_TOOLS=${WITH_TOOLS}" )
message( "   WITH_PYTHON=${WITH_PYTHON}" )
message( "   WITH_TEMPLATES_INSTANTIATION=${WITH_TEMPLATES_INSTANTIATION}" )
# Print compiler options
message( "-- Compiler options:" )
+3 −2
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ WITH_GMP="no"
WITH_TESTS="yes"
WITH_COVERAGE="no"
WITH_EXAMPLES="yes"
WITH_PYTHON="yes"
WITH_TOOLS="yes"

WITH_TEMPLATE_INSTANTIATION="no"
@@ -94,8 +95,8 @@ then
    echo "   --with-tests=yes/no                   Enables unit tests. 'yes' by default."
    echo "   --with-coverage=yes/no                Enables code coverage reports for unit tests. 'no' by default (lcov is required)."
    echo "   --with-examples=yes/no                Compile the 'examples' directory. 'yes' by default."
    echo "   --with-tools=yes/no                   Compile the 'tools' directory. 'yes' by default."
    echo "   --with-python=yes/no                  Compile with the python bindings. 'yes' by default."
    echo "   --with-tools=yes/no                   Compile the 'src/Tools' directory. 'yes' by default."
    echo "   --with-python=yes/no                  Compile the Python bindings. 'yes' by default."
    echo "   --with-templates-instantiation=yes/no Precompiles some TNL templates during the build. 'no' by default."
    echo "   --cmake=CMAKE                         Path to cmake. 'cmake' by default."
    echo "   --verbose                             It enables verbose build."
+6 −6
Original line number Diff line number Diff line
if( WITH_TOOLS STREQUAL "yes" )
if( ${WITH_TOOLS} )
   ADD_SUBDIRECTORY( Python )
endif( WITH_TOOLS STREQUAL "yes" )
endif()

ADD_SUBDIRECTORY( TNL )

if( WITH_TOOLS STREQUAL "yes" )
if( ${WITH_TOOLS} )
   ADD_SUBDIRECTORY( Tools )
endif( WITH_TOOLS STREQUAL "yes" )
endif()

if( WITH_TESTS STREQUAL "yes" )
if( ${WITH_TESTS} )
   ADD_SUBDIRECTORY( UnitTests )
endif( WITH_TESTS STREQUAL "yes" )
endif()