21 lines
597 B
CMake
21 lines
597 B
CMake
cmake_minimum_required(VERSION 3.29)
|
|
project(MP5_CalebFontenot)
|
|
|
|
set(CMAKE_CXX_STANDARD 26)
|
|
|
|
add_executable(MP5_CalebFontenot main.cpp
|
|
simpleMenu.cpp
|
|
Die.cpp
|
|
Die.h
|
|
DiceGame.cpp
|
|
DiceGame.h
|
|
TriviaGame.cpp
|
|
TriviaGame.h)
|
|
|
|
# Add AddressSanitizer flags
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -fpermissive")
|
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fsanitize=address")
|
|
|
|
target_include_directories(MP5_CalebFontenot PRIVATE ${Boost_INCLUDE_DIRS})
|
|
|
|
target_link_libraries(MP5_CalebFontenot ncurses ${Boost_LIBRARIES}) |