Skip to content

Commit f79ad67

Browse files
maybe?
1 parent daf9e5a commit f79ad67

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.30)
22
project(LanternExampleMod)
3-
set (CMAKE_CXX_STANDARD 20)
3+
set(CMAKE_CXX_STANDARD 20)
44

55
set(SRC_FILES
66
pch.h
@@ -19,10 +19,9 @@ set(SRC_FILES
1919
Hooks/Minecraft.World/item/SwordItem.h
2020
)
2121

22-
include(GenerateExportHeader)
2322
add_subdirectory(lib/Lantern)
2423
include_directories(lib/Lantern/lantern lib/Lantern/lantern/lib/detours .)
25-
link_directories(out/build/lib/Lantern out/build/lib/Lantern/lib/detours)
24+
link_directories(${CMAKE_SOURCE_DIR}/out/build/lib/Lantern ${CMAKE_SOURCE_DIR}/out/build/lib/Lantern/lib/detours)
2625

2726
add_library(LanternExampleMod SHARED ${SRC_FILES})
2827
target_link_libraries(LanternExampleMod PRIVATE lib_detours ${CMAKE_SOURCE_DIR}/out/build/lib/Lantern/Lantern.lib)

0 commit comments

Comments
 (0)