mirror of
https://github.com/YimMenu/RDR-Classes.git
synced 2024-12-22 14:37:30 +08:00
a2a74e151a
* feat: initialize classes repo * feat(script): stuff for native invoker * feat: add some more classes * feat(player): complete CNetworkPlayerMgr * feat(network): add some more stuff * feat(network): add rlGamerInfo * feat(player): add CPlayerInfo
31 lines
674 B
CMake
31 lines
674 B
CMake
cmake_minimum_required(VERSION 3.11)
|
|
|
|
project(RDR-Classes)
|
|
|
|
include(CheckIncludeFileCXX)
|
|
|
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
set(CMAKE_REQUIRED_QUIET ON)
|
|
|
|
set(OK TRUE)
|
|
|
|
file(GLOB_RECURSE HEADERS "**.hpp")
|
|
file(GLOB_RECURSE SRC_MAIN "classes.cpp")
|
|
source_group(FILES ${SRC_MAIN})
|
|
add_library(RDR-Classes MODULE "${SRC_MAIN}")
|
|
|
|
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
|
|
|
|
message(STATUS "")
|
|
|
|
target_include_directories(RDR-Classes PRIVATE
|
|
"${SRC_DIR}"
|
|
)
|
|
|
|
if(NOT OK)
|
|
file(READ "${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/CMakeError.log" LOG)
|
|
message(STATUS ${LOG})
|
|
endif() |