initializing pretend project
This commit is contained in:
parent
06a763b0fa
commit
d5474f5107
3 changed files with 31 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ endif()
|
||||||
|
|
||||||
add_subdirectory(engine)
|
add_subdirectory(engine)
|
||||||
add_subdirectory(games/forespend)
|
add_subdirectory(games/forespend)
|
||||||
|
add_subdirectory(games/pretend)
|
||||||
add_subdirectory(games/animatronical/q1/a1)
|
add_subdirectory(games/animatronical/q1/a1)
|
||||||
add_subdirectory(games/endlauncher)
|
add_subdirectory(games/endlauncher)
|
||||||
include(ExternalProject)
|
include(ExternalProject)
|
||||||
27
games/pretend/CMakeLists.txt
Normal file
27
games/pretend/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
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
|
||||||
|
)
|
||||||
3
games/pretend/src/main.cpp
Normal file
3
games/pretend/src/main.cpp
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
//
|
||||||
|
// Created by komi on 2/23/26.
|
||||||
|
//
|
||||||
Loading…
Add table
Add a link
Reference in a new issue