mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 21:39:57 +00:00
Update CMakeLists for Steamshim
This commit is contained in:
parent
02c9c6f6e4
commit
ba53c20972
2 changed files with 9 additions and 5 deletions
|
|
@ -6,8 +6,8 @@ conan_basic_setup()
|
|||
|
||||
## Setup options ##
|
||||
|
||||
option(STEAM "Build for Steam" ON)
|
||||
set(STEAMWORKS_PATH "${CMAKE_BINARY_DIR}/steamworks" CACHE PATH "Path to Steamworks folder")
|
||||
option(STEAM "Build for Steam" OFF)
|
||||
set(STEAMWORKS_PATH "${CMAKE_CURRENT_SOURCE_DIR}/steamworks" CACHE PATH "Path to Steamworks folder")
|
||||
option(DEBUG "Debug mode" OFF)
|
||||
|
||||
## Misc setup ##
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
cmake_minimum_required(VERSION 2.8.11)
|
||||
|
||||
set(STEAMWORKS_PATH "" CACHE PATH "Path to Steamworks folder")
|
||||
set(STEAMWORKS_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../steamworks" CACHE PATH "Path to Steamworks folder")
|
||||
set(GAME_LAUNCH_NAME "oneshot" CACHE STRING "Game launch name")
|
||||
option(DEBUG "Debug mode" OFF)
|
||||
|
||||
|
|
@ -20,7 +20,7 @@ IF(APPLE)
|
|||
link_directories(${STEAMWORKS_PATH}/redistributable_bin/osx32)
|
||||
ELSEIF(WIN32)
|
||||
list(APPEND SOURCES resources.rc)
|
||||
link_directories(${STEAMWORKS_PATH}/redistributable_bin)
|
||||
link_directories(${STEAMWORKS_PATH}/redistributable_bin/win64)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mwindows")
|
||||
ELSEIF(LINUX)
|
||||
link_directories(${STEAMWORKS_PATH}/redistributable_bin/linux64)
|
||||
|
|
@ -31,4 +31,8 @@ add_executable(steamshim
|
|||
${SOURCES}
|
||||
)
|
||||
|
||||
target_link_libraries(steamshim steam_api)
|
||||
IF(WIN32)
|
||||
target_link_libraries(steamshim steam_api64)
|
||||
ELSE()
|
||||
target_link_libraries(steamshim steam_api)
|
||||
ENDIF()
|
||||
|
|
|
|||
Loading…
Reference in a new issue