Skip to content
Permalink
73f844c7a6
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
31 lines (24 sloc) 1.07 KB
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}/src)
file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/include)
file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/obj)
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)
add_subdirectory(${CMAKE_SOURCE_DIR}/src)
include_directories(${CMAKE_SOURCE_DIR}/include)
find_package(Curses REQUIRED)
include_directories(${CURSES_INCLUDE_DIR})
add_compile_options(-g)
add_compile_options(-lncursesw)
add_compile_options(-lsqlite3)
find_library(sqlite3 NAMES sqlite3 PATHS ${/usr/lib/x86_64-linux-gnu})
add_executable(main main.cpp)
target_link_libraries(main menu selection game window hero ability effect player bar sqlite3 ${CURSES_LIBRARIES})
#add_executable(hero ${CMAKE_SOURCE_DIR}/src/Hero.cpp)
#target_link_libraries(hero ability effect sqlite3)