-
Notifications
You must be signed in to change notification settings - Fork 24
/
CMakeLists.txt
26 lines (21 loc) · 926 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# My version, use previous version at own risk
CMAKE_MINIMUM_REQUIRED(VERSION 3.9)
PROJECT(Creamlinux)
SET(CMAKE_CXX_STANDARD 17) # no explicit compiler flags if possible
SET(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
SET(CMAKE_BUILD_TYPE Debug)
SET (DEBUG true)
link_directories(${CMAKE_SOURCE_DIR}/lib)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
ADD_LIBRARY(Creamlinux SHARED
${CMAKE_SOURCE_DIR}/main.cpp
${CMAKE_SOURCE_DIR}/ext/steamworks_sdk/steam
# ${CMAKE_SOURCE_DIR}/Creamlinux_steamapps.cpp
)
# If you want to build the testapp, you'll need to find libsteam_api and copy it to lib/libsteam_api.so
#ADD_EXECUTABLE(Testapp ${CMAKE_SOURCE_DIR}/test.cpp)
#TARGET_LINK_LIBRARIES(Testapp libsteam_api.so)
#TARGET_LINK_LIBRARIES(${CREAMLINUX_NAME} )