Temp-Classes/CMakeLists.txt

33 lines
649 B
CMake
Raw Permalink Normal View History

cmake_minimum_required(VERSION 3.11)
project(GTAV-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")
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}")
2023-02-24 07:11:35 +08:00
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
message(STATUS "")
2023-02-24 07:11:35 +08:00
target_include_directories(GTAV-Classes PRIVATE
"${SRC_DIR}"
)
if(NOT OK)
file(READ "${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/CMakeError.log" LOG)
message(STATUS ${LOG})
endif()