Skip to content

proywm/Gravitate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gravitate

PREREQUISITES

COMPILE

Run 'cmake .' to generate the Makefile. If SFML is not installed in a standard search path, then CMake will not be able to find the required cmake module 'FindSFML.cmake'. You can direct CMake to look for it in a specific location by setting the environment varibale 'CMAKE_MODULE_PATH'. For example assuming bash and SFML installed in ~/local

export CMAKE_MODULE_PATH=/local/share/SFML/cmake/Modules export LIB=/local/lib export INCLUDE=~/local/include cmake .

To compile, simply run 'make'. If SFML was installed correctly, a executable 'Gravitate' will be generated.

ADDING FILES

If you want to add an executable, just add the corresponding .cpp file in the 'bin' subdirectory, and rerun 'cmake .' to update the Makefiles. If you want to add a source file, just add the corresponding .cpp file in the 'src' subdirectory, and rerun 'cmake .' to update the Makefile. If you want to add a header file, just add the corresponding .h file to the 'include' subdirectory. You do not need to update the Makefile.

CLEANING UP

If you want to remove all compiled files, just run 'make clean'. This will remove every .o file and executable. It will not however remove any of the files generated by CMake. If you want to obtain a completely clean copy of your code, you can run the provided script (linux only): 'scripts/cmake_cleanup'