mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2024-12-22 20:17:24 +08:00
chore(CMake): Absolutely unnecessary CMake changes. (#648)
This commit is contained in:
parent
0a2007bb29
commit
6374552a80
@ -38,12 +38,11 @@ target_include_directories(YimMenu PRIVATE
|
||||
"${SRC_DIR}"
|
||||
"${json_SOURCE_DIR}/single_include"
|
||||
"${gtav_classes_SOURCE_DIR}"
|
||||
"${minhook_SOURCE_DIR}/include"
|
||||
"${imgui_SOURCE_DIR}"
|
||||
)
|
||||
|
||||
target_precompile_headers(YimMenu PRIVATE "${SRC_DIR}/common.hpp")
|
||||
target_link_libraries(YimMenu PRIVATE pugixml minhook g3log imgui d3dcompiler)
|
||||
target_link_libraries(YimMenu PRIVATE pugixml minhook g3log imgui)
|
||||
|
||||
# Warnings as errors
|
||||
set_property(TARGET YimMenu PROPERTY COMPILE_WARNING_AS_ERROR ON)
|
||||
|
@ -11,13 +11,4 @@ FetchContent_Declare(
|
||||
message("GTAV-Classes")
|
||||
if(NOT gtav_classes_POPULATED)
|
||||
FetchContent_Populate(gtav_classes)
|
||||
|
||||
file(GLOB_RECURSE SRC_GTAV_CLASSES "${gtav_classes_SOURCE_DIR}/*.hpp")
|
||||
|
||||
# Show GTAV-Classes project
|
||||
add_library(gtav_classes "${SRC_GTAV_CLASSES}")
|
||||
|
||||
source_group(TREE "${gtav_classes_SOURCE_DIR}" PREFIX "GTAV-Classes" FILES "${SRC_GTAV_CLASSES}")
|
||||
endif()
|
||||
set_property(TARGET gtav_classes PROPERTY CXX_STANDARD 23)
|
||||
set_target_properties(gtav_classes PROPERTIES LINKER_LANGUAGE CXX)
|
||||
|
@ -12,10 +12,9 @@ if(NOT imgui_POPULATED)
|
||||
|
||||
file(GLOB SRC_IMGUI
|
||||
"${imgui_SOURCE_DIR}/*.cpp"
|
||||
"${imgui_SOURCE_DIR}/*.h"
|
||||
"${imgui_SOURCE_DIR}/backends/imgui_impl_win32.*"
|
||||
"${imgui_SOURCE_DIR}/backends/imgui_impl_dx11.*"
|
||||
"${imgui_SOURCE_DIR}/misc/cpp/imgui_stdlib.*"
|
||||
"${imgui_SOURCE_DIR}/backends/imgui_impl_win32.cpp"
|
||||
"${imgui_SOURCE_DIR}/backends/imgui_impl_dx11.cpp"
|
||||
"${imgui_SOURCE_DIR}/misc/cpp/imgui_stdlib.cpp"
|
||||
)
|
||||
|
||||
add_library(imgui STATIC ${SRC_IMGUI})
|
||||
|
@ -10,8 +10,3 @@ FetchContent_Declare(
|
||||
)
|
||||
message("json")
|
||||
FetchContent_MakeAvailable(json)
|
||||
|
||||
# Show json project
|
||||
add_library(json ${json_SOURCE_DIR}/single_include/nlohmann/json.hpp)
|
||||
set_property(TARGET json PROPERTY CXX_STANDARD 23)
|
||||
set_target_properties(json PROPERTIES LINKER_LANGUAGE CXX)
|
||||
|
@ -1 +0,0 @@
|
||||
#include "common.hpp"
|
Loading…
Reference in New Issue
Block a user