Skip to content
Permalink
76eb70c5b1
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
30 lines (21 sloc) 934 Bytes
cmake_minimum_required(VERSION 3.0)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
project(Text_Based_Game CXX)
file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/classes)
file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/classes/Game)
file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/classes/GameWindow)
file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/classes/Hero)
file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/lib)
file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/src)
file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/Database)
file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/Testing)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/obj)
find_package(Curses REQUIRED)
include_directories(${CURSES_INCLUDE_DIR})
add_subdirectory(${CMAKE_SOURCE_DIR}/src)
add_compile_options(-lncursesw)
add_executable(main main.cpp)
target_link_libraries(main game window ${CURSES_LIBRARIES})