chore(CMake): Absolutely unnecessary CMake changes. (#648)

This commit is contained in:
tupoy-ya 2022-11-28 21:27:43 +05:00 committed by GitHub
parent 0a2007bb29
commit 6374552a80
5 changed files with 4 additions and 21 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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})

View File

@ -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)

View File

@ -1 +0,0 @@
#include "common.hpp"