Skip to content

Latest commit

 

History

History
52 lines (28 loc) · 1.98 KB

README.md

File metadata and controls

52 lines (28 loc) · 1.98 KB

HamPi

ACTIVE: Source Code for First Year ARM11 Group project Team HamPi

Note

The original host for this project was on the Imperial College GitLab servers, therefore the commits represented on GitHub are not representative of the total work done by each contributor. If you would like to know who wrote a certain section of code, please just ask!

/Cmake file for linking Clion/

/You generally want to install the development library for your system./

/Put the resources in the cmake-build-debug folder/

/But make sure you put the contents of the lib folder directly in the cmake-build-debug folder where the game executable is/

SDL2

SDL2_ttf

SDL2_mixer

cmake_minimum_required(VERSION 3.7)

project(.....) //Project Name here as normal

set(CMAKE_CXX_STANDARD 11)

include_directories(${CMAKE_SOURCE_DIR}/.....) //Put the directory path which corresponds to the include folder of SDL2

link_directories(${CMAKE_SOURCE_DIR}/.....) //Put the directory path which corresponds to the library folder of SDL2

include_directories(${CMAKE_SOURCE_DIR}/.....) //Put the directory path which corresponds to the include folder of SDL2_ttf

link_directories(${CMAKE_SOURCE_DIR}/.....) //Put the directory path which corresponds to the library folder of SDL2_ttf

include_directories(${CMAKE_SOURCE_DIR}/.....) //Put the directory path which corresponds to the include folder of SDL2_mixer

link_directories(${CMAKE_SOURCE_DIR}/.....) //Put the directory path which corresponds to the library folder of SDL2_mixer

set(SOURCE_FILES .....) //As normal

add_executable(game ${SOURCE_FILES})

target_link_libraries(..... SDL2) /*

target_link_libraries(..... SDL2_ttf) Link the libraries used here

target_link_libraries(..... SDL2_mixer) */