-
Notifications
You must be signed in to change notification settings - Fork 19
/
CMakeLists.txt
88 lines (67 loc) · 2.75 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
cmake_minimum_required(VERSION 3.26)
project(Lampray)
set(CMAKE_CXX_STANDARD 17)
add_executable(Lampray main.cpp
third-party/imgui/imconfig.h
third-party/imgui/imgui.cpp
third-party/imgui/imgui.h
third-party/imgui/imgui_demo.cpp
third-party/imgui/imgui_draw.cpp
third-party/imgui/imgui_internal.h
third-party/imgui/imgui_tables.cpp
third-party/imgui/imgui_widgets.cpp
third-party/imgui/imstb_rectpack.h
third-party/imgui/imstb_textedit.h
third-party/imgui/imstb_truetype.h
third-party/json/json.hpp
game-data/gameControl.h
third-party/l4z/lz4.c
third-party/l4z/lz4.h
VERSION
Lampray/Base/lampBase.h
Lampray/Filesystem/lampFS.h
Lampray/Control/lampControl.h
Lampray/Control/lampControl.cpp
Lampray/Parse/lampParse.h
game-data/BG3/BG3.cpp
game-data/BG3/BG3.h
Lampray/Control/lampConfig.h
Lampray/Control/lampConfig.cpp
Lampray/Filesystem/lampExtract.cpp
Lampray/Filesystem/lampIO.cpp
Lampray/Menu/lampMenu.h
Lampray/Menu/lampMenu.cpp
Lampray/Filesystem/lampUpdate.cpp
Lampray/Control/lampGames.h
Lampray/Filesystem/lampShare.cpp
"Lampray/Menu/lampCustomise .h"
Lampray/Filesystem/lampTrack.cpp
game-data/C77/C77.cpp
game-data/C77/C77.h
third-party/imgui/imgui_impl_sdl2.cpp
third-party/imgui/imgui_impl_sdlrenderer2.cpp
game-data/LHL/LHL.cpp
game-data/LHL/LHL.h
Lampray/Lang/lampLang.h
)
find_package(PkgConfig REQUIRED)
target_link_libraries(${PROJECT_NAME} ${CMAKE_SOURCE_DIR}/third-party/bit7z/lib/x64/libbit7z64.a )
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_SOURCE_DIR}/third-party/bit7z/include/include/bit7z )
target_link_libraries(${PROJECT_NAME} ${CMAKE_SOURCE_DIR}/third-party/nfd/lib/libnfd.a )
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_SOURCE_DIR}/third-party/nfd/include/include/nfd.h )
# Find the SDL2 package
find_package(SDL2 REQUIRED)
# Include SDL2 headers
include_directories(${SDL2_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME} ${SDL2_LIBRARIES})
#add_subdirectory(third-party/SDL2)
#target_link_libraries(${PROJECT_NAME} SDL)
#find_package(pugixml REQUIRED)
#target_link_libraries(${PROJECT_NAME} pugixml::pugixml)
add_subdirectory(third-party/pugixml)
target_link_libraries(${PROJECT_NAME} pugixml::pugixml)
find_package(CURL REQUIRED)
include_directories(${CURL_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME} ${CURL_LIBRARIES})
target_link_libraries(${PROJECT_NAME} ${CMAKE_SOURCE_DIR}/third-party/l4z/liblz4.so)
target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_SOURCE_DIR}/third-party/l4z/)