Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
ALL-Project-2-Text-Based-Game-Blackmail-/CMakeLists.txt
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
86 lines (65 sloc)
2.07 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<<<<<<< HEAD | |
cmake_minimum_required(VERSION 3.0) | |
set(CMAKE_CXX_STANDARD 14) | |
======= | |
#cmake file | |
cmake_minimum_required(VERSION 3.0) | |
set(CMAKE_CXX_STANDARD 14) | |
>>>>>>> eea4137c94972ad5ffc5c09eab0ecae6ee4071ba | |
project(textgame CXX) | |
# limit number of errors shown to 1 | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wfatal-errors") | |
# config directories | |
include_directories(${CMAKE_SOURCE_DIR}) | |
<<<<<<< HEAD | |
# add tests | |
enable_testing() | |
# tell cmake where to put the executables that it creates | |
# also creates the directory if needed | |
file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/bin) | |
======= | |
# tell cmake where to put the executables that it creates | |
# also creates the directory if needed | |
file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/bin) | |
>>>>>>> eea4137c94972ad5ffc5c09eab0ecae6ee4071ba | |
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin ) | |
file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/lib) | |
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib) | |
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/lib) | |
<<<<<<< HEAD | |
# this adds the desired files as libraries to enable linking them for eaasier compilation | |
add_library( game game.cpp ) | |
add_library( character character.cpp) | |
add_library ( enemy enemy.cpp) | |
add_library ( area area.cpp) | |
add_library ( combat combat.cpp) | |
add_library ( map map.cpp) | |
add_library ( inventory inventory.cpp) | |
add_library ( menu menu.cpp) | |
add_library ( item item.cpp) | |
add_library ( armor armor.cpp) | |
add_library( weapon weapon.cpp) | |
add_executable( main main.cpp ) | |
target_link_libraries( main game area character enemy combat map inventory menu item armor weapon ) | |
======= | |
set(CMAKE_BUILD_TYPE RELWITHDEBINFO) | |
add_library( game game.cpp | |
character.cpp | |
enemy.cpp | |
area.cpp | |
combat.cpp | |
map.cpp | |
inventory.cpp | |
menu.cpp | |
item.cpp | |
armor.cpp | |
weapon.cpp | |
typing.cpp ) | |
add_executable( main main.cpp ) | |
target_link_libraries( main game ) | |
add_library(catch Tests/catch2.cpp) | |
enable_testing() | |
add_executable(tester Tests/test_input.cpp Tests/test_inventory.cpp) | |
target_link_libraries(tester game catch) | |
add_test(Tester tester) | |
>>>>>>> eea4137c94972ad5ffc5c09eab0ecae6ee4071ba |