Skip to content

Commit ebd2a26

Browse files
committed
Add vvis, vmpi, lzma and libcurl to CMake
1 parent e21611e commit ebd2a26

3,996 files changed

Lines changed: 669869 additions & 65 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ option(NEO_BUILD_TIER1 "Build tier1 library" ON)
3636
option(NEO_BUILD_MATHLIB "Build mathlib library" ON)
3737
option(NEO_BUILD_VGUI_CONTROLS "Build vgui_controls library" ON)
3838
option(NEO_BUILD_UTILS "Build utils" ON)
39+
option(NEO_VMPI "Use VMPI in utils" ON)
3940
option(NEO_COPY_LIBRARIES "Copy libraries to bin directory by default" ON)
4041
option(NEO_EXTRA_ASSETS "Copy extra assets into game/neo" ON)
4142
if (OS_LINUX)
@@ -64,6 +65,7 @@ message(STATUS "Build tier1 library: ${NEO_BUILD_TIER1}")
6465
message(STATUS "Build mathlib library: ${NEO_BUILD_MATHLIB}")
6566
message(STATUS "Build vgui_controls library: ${NEO_BUILD_VGUI_CONTROLS}")
6667
message(STATUS "Build utils: ${NEO_BUILD_UTILS}")
68+
message(STATUS "Use VMPI in utils: ${NEO_VMPI}")
6769
message(STATUS "Copy libraries to bin directory by default: ${NEO_COPY_LIBRARIES}")
6870
message(STATUS "Copy extra assets into game/neo: ${NEO_EXTRA_ASSETS}")
6971
message(STATUS "Directory for output libraries: ${NEO_OUTPUT_LIBRARY_PATH}")
@@ -395,6 +397,7 @@ if(NEO_USE_CCACHE)
395397
)
396398
endif()
397399

400+
add_subdirectory(thirdparty)
398401
add_subdirectory(lib)
399402

400403
if(NEO_GENERATE_GAMEDATA)

src/cmake/FindLibZ.cmake

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
if(OS_WINDOWS)
2+
set(LIBZ_LIBRARY_NAME libz.lib)
3+
elseif(OS_LINUX OR OS_MACOS)
4+
return() # TODO Linux
5+
endif()
6+
7+
find_file(LIBZ_LIBRARY
8+
NAMES ${LIBZ_LIBRARY_NAME}
9+
PATHS "${LIBPUBLIC}"
10+
NO_CACHE
11+
NO_DEFAULT_PATH
12+
REQUIRED
13+
)
14+
15+
mark_as_advanced(LIBZ_LIBRARY)
16+
17+
add_library(libz_libz STATIC IMPORTED GLOBAL)
18+
add_library(libz::libz ALIAS libz_libz)
19+
20+
set_target_properties(libz_libz PROPERTIES
21+
IMPORTED_LOCATION "${LIBZ_LIBRARY}"
22+
)

src/cmake/FindTier0.cmake

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,9 @@ elseif(OS_LINUX OR OS_MACOS)
2828
)
2929
endif()
3030

31-
set_target_properties(tier0_tier0 PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_SOURCE_DIR}/public/tier0")
31+
target_include_directories(tier0_tier0
32+
INTERFACE
33+
"${CMAKE_SOURCE_DIR}/common"
34+
"${CMAKE_SOURCE_DIR}/public"
35+
"${CMAKE_SOURCE_DIR}/public/tier0"
36+
)

src/cmake/FindTier2.cmake

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,14 @@ add_library(tier2::tier2 ALIAS tier2_tier2)
1919

2020
set_target_properties(tier2_tier2 PROPERTIES
2121
IMPORTED_LOCATION "${TIER2_LIBRARY}"
22-
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_SOURCE_DIR}/public/tier2"
22+
)
23+
24+
target_include_directories(tier2_tier2
25+
INTERFACE
26+
"${CMAKE_SOURCE_DIR}/public/tier2"
27+
)
28+
29+
target_link_libraries(tier2_tier2
30+
INTERFACE
31+
tier1::tier1
2332
)

src/cmake/FindTier3.cmake

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,14 @@ add_library(tier3::tier3 ALIAS tier3_tier3)
1919

2020
set_target_properties(tier3_tier3 PROPERTIES
2121
IMPORTED_LOCATION "${TIER3_LIBRARY}"
22-
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_SOURCE_DIR}/public/tier3"
22+
)
23+
24+
target_include_directories(tier3_tier3
25+
INTERFACE
26+
"${CMAKE_SOURCE_DIR}/public/tier3"
27+
)
28+
29+
target_link_libraries(tier3_tier3
30+
INTERFACE
31+
tier2::tier2
2332
)

src/fgdlib/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ set_target_properties(fgdlib PROPERTIES PREFIX "")
66

77
target_include_directories(fgdlib
88
PRIVATE
9-
${CMAKE_SOURCE_DIR}/common
10-
${CMAKE_SOURCE_DIR}/public
119
${CMAKE_SOURCE_DIR}/utils/common
1210
)
1311

@@ -24,7 +22,6 @@ target_compile_options(fgdlib
2422

2523
target_link_libraries(fgdlib
2624
PRIVATE
27-
tier0::tier0
2825
tier1::tier1
2926
mathlib::mathlib
3027
)

src/game/client/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ endif()
1414

1515
target_include_directories(client
1616
PRIVATE
17-
${CMAKE_SOURCE_DIR}/common
1817
${CMAKE_SOURCE_DIR}/game/client
1918
${CMAKE_SOURCE_DIR}/game/shared
2019
${CMAKE_SOURCE_DIR}/game/shared/hl2
2120
${CMAKE_SOURCE_DIR}/game/shared/hl2mp
2221
${CMAKE_SOURCE_DIR}/game/shared/Multiplayer
2322
${CMAKE_SOURCE_DIR}/game/shared/neo
2423
${CMAKE_SOURCE_DIR}/game/shared/neo/weapons
25-
${CMAKE_SOURCE_DIR}/public
2624
${CMAKE_SOURCE_DIR}/thirdparty/sixensesdk/include
2725
${CMAKE_SOURCE_DIR}/vendor
2826
${CMAKE_SOURCE_DIR}/game/client/NextBot
@@ -54,9 +52,6 @@ target_link_libraries(client
5452
mathlib::mathlib
5553
choreo_objects::choreo_objects
5654
dmx_loader::dmx_loader
57-
tier0::tier0
58-
tier1::tier1
59-
tier2::tier2
6055
tier3::tier3
6156
matsys_controls::matsys_controls
6257
vstdlib::vstdlib

src/game/server/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ endif()
3131
target_include_directories(server
3232
PRIVATE
3333
${CMAKE_CURRENT_SOURCE_DIR}
34-
${CMAKE_SOURCE_DIR}/common
3534
${CMAKE_SOURCE_DIR}/game/server
3635
${CMAKE_SOURCE_DIR}/game/server/hl2
3736
${CMAKE_SOURCE_DIR}/game/server/hl2mp
@@ -44,7 +43,6 @@ target_include_directories(server
4443
${CMAKE_SOURCE_DIR}/game/shared/neo
4544
${CMAKE_SOURCE_DIR}/game/shared/neo/weapons
4645
${CMAKE_SOURCE_DIR}/utils/common
47-
${CMAKE_SOURCE_DIR}/public
4846
)
4947

5048
target_compile_definitions(server
@@ -69,9 +67,6 @@ target_link_libraries(server
6967
choreo_objects::choreo_objects
7068
dmx_loader::dmx_loader
7169
particles::particles
72-
tier0::tier0
73-
tier1::tier1
74-
tier2::tier2
7570
tier3::tier3
7671
vstdlib::vstdlib
7772
steam_api::steam_api

src/lib/CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
find_package(Appframework)
1+
find_package(AppFramework)
22
find_package(Bitmap)
33
find_package(ChoreoObjects)
4+
#find_package(DataModel)
45
find_package(DMXLoader)
6+
#find_package(GCSDK)
7+
find_package(LibZ)
58
find_package(MatSysControls)
69

710
if(NEO_BUILD_MATHLIB)
@@ -11,6 +14,7 @@ else()
1114
endif()
1215

1316
find_package(Particles)
17+
#find_package(ShaderLib)
1418
find_package(SteamAPI)
1519
find_package(Tier0)
1620

@@ -29,5 +33,6 @@ else()
2933
find_package(VGUIControls)
3034
endif()
3135

36+
#find_package(VPKLib)
3237
find_package(VSTDLib)
33-
find_package(VTF)
38+
find_package(VTF)

src/materialsystem/stdshaders/CMakeLists.txt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,9 @@ endif()
1414

1515
target_include_directories(game_shader_dx9
1616
PRIVATE
17-
${CMAKE_SOURCE_DIR}/common
18-
${CMAKE_SOURCE_DIR}/public
19-
fxctmp9
20-
vshtmp9
21-
include
17+
fxctmp9
18+
vshtmp9
19+
include
2220
)
2321

2422
target_compile_definitions(game_shader_dx9
@@ -52,8 +50,6 @@ endif()
5250

5351
target_link_libraries(game_shader_dx9
5452
PRIVATE
55-
tier0::tier0
56-
tier1::tier1
5753
tier2::tier2
5854
mathlib::mathlib
5955
vstdlib::vstdlib

0 commit comments

Comments
 (0)