adding additional files
This commit is contained in:
17
CMakeLists.txt
Normal file
17
CMakeLists.txt
Normal file
@@ -0,0 +1,17 @@
|
||||
cmake_minimum_required(VERSION 3.31)
|
||||
project(BeyondDepth C)
|
||||
|
||||
set(CMAKE_C_STANDARD 23)
|
||||
# set the output directory for built objects.
|
||||
# This makes sure that the dynamic library goes into the build directory automatically.
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/$<CONFIGURATION>")
|
||||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/$<CONFIGURATION>")
|
||||
|
||||
# This assumes the SDL source is available in SDL
|
||||
add_subdirectory(SDL EXCLUDE_FROM_ALL)
|
||||
|
||||
# Create your game executable target as usual
|
||||
add_executable(BeyondDepth WIN32 main.c)
|
||||
|
||||
# Link to the actual SDL3 library.
|
||||
target_link_libraries(BeyondDepth PRIVATE SDL3::SDL3)
|
||||
Reference in New Issue
Block a user