allgames/games/pretend/CMakeLists.txt

27 lines
No EOL
912 B
CMake

cmake_minimum_required(VERSION 3.20)
# this game will be the hardest to make buuuut
# it will be a challenge to i be able to code around
# 8h/day and not burn out since im managing many different projects
# and i wont get bored, cuz if i do i switch between
# pretend, forespend and animatronical
set(CMAKE_CXX_FLAGS "-std=c++26 -Wno-error -Oz -w -g -mavx2")
file(GLOB_RECURSE PRETEND_SOURCES CONFIGURE_DEPENDS "src/*.cpp")
add_executable(pretend ${PRETEND_SOURCES})
if(NOT DEFINED ${ARCH})
set(ARCH "linux-64")
endif(NOT DEFINED ${ARCH})
set_target_properties(pretend PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/built/pretend/${PLATFORM_DIR}/bin"
)
target_link_directories(
pretend PUBLIC
"${CMAKE_SOURCE_DIR}/link")
target_link_libraries(pretend PRIVATE
enginend
raylib
)
target_include_directories(pretend PUBLIC
${CMAKE_SOURCE_DIR}/include
)