2022-06-01 14:47:39 +08:00
|
|
|
cmake_minimum_required(VERSION 3.11)
|
|
|
|
|
|
|
|
project(GTAV-Classes)
|
|
|
|
|
|
|
|
include(CheckIncludeFileCXX)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
2023-01-13 01:30:11 +08:00
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
2022-06-01 14:47:39 +08:00
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
|
|
|
|
set(CMAKE_REQUIRED_QUIET ON)
|
|
|
|
|
|
|
|
set(OK TRUE)
|
|
|
|
|
2023-01-03 20:15:06 +08:00
|
|
|
file(GLOB_RECURSE HEADERS "**.hpp")
|
2023-02-24 07:11:35 +08:00
|
|
|
file(GLOB_RECURSE SRC_MAIN "classes.cpp")
|
|
|
|
source_group(FILES ${SRC_MAIN})
|
|
|
|
add_library(GTAV-Classes MODULE "${SRC_MAIN}")
|
2022-06-01 14:47:39 +08:00
|
|
|
|
2023-02-24 07:11:35 +08:00
|
|
|
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
|
2022-06-01 14:47:39 +08:00
|
|
|
|
|
|
|
message(STATUS "")
|
2023-07-24 00:14:58 +08:00
|
|
|
|
2023-02-24 07:11:35 +08:00
|
|
|
target_include_directories(GTAV-Classes PRIVATE
|
|
|
|
"${SRC_DIR}"
|
|
|
|
)
|
|
|
|
|
2022-06-01 14:47:39 +08:00
|
|
|
if(NOT OK)
|
2022-11-09 05:11:50 +08:00
|
|
|
file(READ "${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/CMakeError.log" LOG)
|
|
|
|
message(STATUS ${LOG})
|
2022-06-01 14:47:39 +08:00
|
|
|
endif()
|
2022-08-26 04:06:34 +08:00
|
|
|
|