We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent daf9e5a commit f79ad67Copy full SHA for f79ad67
1 file changed
CMakeLists.txt
@@ -1,6 +1,6 @@
1
cmake_minimum_required(VERSION 3.30)
2
project(LanternExampleMod)
3
-set (CMAKE_CXX_STANDARD 20)
+set(CMAKE_CXX_STANDARD 20)
4
5
set(SRC_FILES
6
pch.h
@@ -19,10 +19,9 @@ set(SRC_FILES
19
Hooks/Minecraft.World/item/SwordItem.h
20
)
21
22
-include(GenerateExportHeader)
23
add_subdirectory(lib/Lantern)
24
include_directories(lib/Lantern/lantern lib/Lantern/lantern/lib/detours .)
25
-link_directories(out/build/lib/Lantern out/build/lib/Lantern/lib/detours)
+link_directories(${CMAKE_SOURCE_DIR}/out/build/lib/Lantern ${CMAKE_SOURCE_DIR}/out/build/lib/Lantern/lib/detours)
26
27
add_library(LanternExampleMod SHARED ${SRC_FILES})
28
target_link_libraries(LanternExampleMod PRIVATE lib_detours ${CMAKE_SOURCE_DIR}/out/build/lib/Lantern/Lantern.lib)
0 commit comments