Loading CMakeLists.txt +4 −0 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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:" ) Loading build +3 −2 Original line number Diff line number Diff line Loading @@ -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" Loading Loading @@ -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." Loading src/CMakeLists.txt +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() Loading
CMakeLists.txt +4 −0 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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:" ) Loading
build +3 −2 Original line number Diff line number Diff line Loading @@ -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" Loading Loading @@ -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." Loading
src/CMakeLists.txt +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()