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?
Text-Based-Game/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.
31 lines (24 sloc)
1.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
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) |