Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 6 additions & 16 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,29 +1,19 @@
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
set(CMAKE_VISIBILITY_INLINES_HIDDEN 1)

cmake_minimum_required(VERSION 3.29)
cmake_minimum_required(VERSION 3.30.5)
project(Lantern)
set (CMAKE_CXX_STANDARD 20)

file(GLOB_RECURSE SOURCE_FILES ${PROJECT_SOURCE_DIR}/lantern/*.cpp)
file(GLOB_RECURSE HEADER_FILES ${PROJECT_SOURCE_DIR}/lantern/*.h)

set(SRC_FILES
resource.h
Resource.rc

lantern/pch.h
lantern/pch.cpp
lantern/framework.h
lantern/Lantern.cpp
lantern/Lantern.h
lantern/LanternMod.h

lantern/Util/Event.cpp
lantern/Util/Event.h
lantern/Util/HookHelper.h
lantern/Util/Logger.cpp
lantern/Util/Logger.h

lantern/InternalHooks/Minecraft.cpp
lantern/InternalHooks/Minecraft.h
${SOURCE_FILES}
#${HEADER_FILES}
)

include_directories(lantern ${CMAKE_SOURCE_DIR}/lib/detours/include)
Expand Down
9 changes: 4 additions & 5 deletions lib/detours/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ target_compile_options(${TARGET} PRIVATE /W4 /WX /Zi /MT /Gy /Gm- /Zl /Od)
target_include_directories(${TARGET} PUBLIC ${DETOURS_SOURCE})

# withdll
add_executable(withdll Detours/samples/withdll/withdll.cpp)
target_link_libraries(withdll lib_detours)
#add_executable(withdll Detours/samples/withdll/withdll.cpp)
#target_link_libraries(withdll lib_detours)

# Static library for the syelog components
add_library(syelog STATIC Detours/samples/syelog/syelog.cpp
Expand All @@ -42,9 +42,8 @@ target_link_libraries(syelog PUBLIC lib_detours ws2_32 secur32)


# syelogd
add_executable(syelogd Detours/samples/syelog/syelogd.cpp
Detours/samples/syelog/syelog.h)
target_link_libraries(syelogd PRIVATE lib_detours)
#add_executable(syelogd Detours/samples/syelog/syelogd.cpp Detours/samples/syelog/syelog.h)
#target_link_libraries(syelogd PRIVATE lib_detours)

# traceapi example
add_library(traceapi SHARED Detours/samples/traceapi/trcapi.cpp
Expand Down