Skip to content

Commit

Permalink
use vcpkg for more packages
Browse files Browse the repository at this point in the history
  • Loading branch information
DubbleClick committed Nov 11, 2024
1 parent 046517e commit 46372df
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 194 deletions.
16 changes: 5 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ if(NOT(CMAKE_SIZEOF_VOID_P EQUAL 4))
message(FATAL_ERROR "You are configuring a non 32-bit build, this is not supported. Run cmake with `-A Win32`")
endif()

option(CLEAN "Cleans third party libraries and recompiles them" OFF)
if(${CLEAN} MATCHES "ON")
message("Removing directory: ${PROJECT_SOURCE_DIR}/bin/install")
file(REMOVE_RECURSE ${PROJECT_SOURCE_DIR}/bin/install)
endif()

set(VERSION_MAJOR 1)
set(VERSION_MINOR 7)
set(VERSION_PATCH 0)
Expand All @@ -32,10 +26,10 @@ set(CMAKE_INSTALL_PREFIX ${PROJECT_SOURCE_DIR}/bin/install)
add_compile_options(/MP /permissive-)

list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
include(libzippp)
include(minhook)
find_package(libzippp CONFIG REQUIRED)
find_package(minhook CONFIG REQUIRED)
find_package(Microsoft.GSL CONFIG REQUIRED)
include(dxtk)
include(msgsl)

add_library(gMod SHARED)

Expand All @@ -56,9 +50,9 @@ target_compile_options(gMod PRIVATE /W4 /WX)

target_link_libraries(gMod PRIVATE
dxguid
libzippp
libzippp::libzippp
psapi
minhook
minhook::minhook
directxtex
Microsoft.GSL::GSL
)
Expand Down
2 changes: 1 addition & 1 deletion TpfConvert/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ endif()
find_package(dxsdk-d3dx CONFIG REQUIRED)

target_link_libraries(TpfConvert PRIVATE
libzippp
libzippp::libzippp
Microsoft::D3DX9
d3d9
)
65 changes: 0 additions & 65 deletions cmake/libzip.cmake

This file was deleted.

42 changes: 0 additions & 42 deletions cmake/libzippp.cmake

This file was deleted.

16 changes: 0 additions & 16 deletions cmake/minhook.cmake

This file was deleted.

11 changes: 0 additions & 11 deletions cmake/msgsl.cmake

This file was deleted.

47 changes: 0 additions & 47 deletions cmake/zlib.cmake

This file was deleted.

5 changes: 4 additions & 1 deletion vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"dependencies": [
"dxsdk-d3dx"
"dxsdk-d3dx",
"libzippp",
"minhook",
"ms-gsl"
]
}

0 comments on commit 46372df

Please sign in to comment.