mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-20 22:33:43 -04:00
add steam and achivements, improve console
This commit is contained in:
parent
9bfb0f1d5d
commit
f49a7490c1
13 changed files with 360 additions and 258 deletions
|
@ -3,6 +3,20 @@ project(skeldal)
|
|||
|
||||
# Najít SDL2 knihovnu
|
||||
find_package(SDL2 REQUIRED)
|
||||
set(STEAMWORKS_SDK_DIR "${CMAKE_SOURCE_DIR}/external/steamworks/")
|
||||
# Check if Steamworks SDK directories exist
|
||||
if(NOT EXISTS "${STEAMWORKS_SDK_DIR}/public")
|
||||
message(FATAL_ERROR "❌ Could not find Steamworks SDK 'public' headers.
|
||||
Make sure to download the Steamworks SDK and place it in:${STEAMWORKS_SDK_DIR}
|
||||
Expected directory: ${STEAMWORKS_SDK_DIR}/public
|
||||
")
|
||||
endif()
|
||||
if(NOT EXISTS "${STEAMWORKS_SDK_DIR}/redistributable_bin")
|
||||
message(FATAL_ERROR "❌ Could not find Steamworks SDK 'redistributable_bin' libraries.
|
||||
Make sure to download the Steamworks SDK and place it in: ${STEAMWORKS_SDK_DIR}
|
||||
Expected directory: ${STEAMWORKS_SDK_DIR}/redistributable_bin
|
||||
")
|
||||
endif()
|
||||
|
||||
if (MSVC)
|
||||
add_compile_options(/W4 /EHa /DNOMINMAX /D_CRT_SECURE_NO_WARNINGS /J)
|
||||
|
@ -19,7 +33,7 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib/)
|
|||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib/)
|
||||
|
||||
include_directories( ${SDL2_INCLUDE_DIRS})
|
||||
enable_testing()
|
||||
include_directories(${STEAMWORKS_SDK_DIR}/public)
|
||||
add_subdirectory(libs)
|
||||
add_subdirectory(platform)
|
||||
add_subdirectory(game)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue