fix linux and modern vs builds

This commit is contained in:
krystalgamer 2024-08-18 20:11:38 +01:00
parent 4d13951a9f
commit 2bd556a3b2
4 changed files with 8 additions and 0 deletions

View File

@ -24,3 +24,9 @@ endif()
file(GLOB SRC_FILES *.cpp)
add_executable(${PROJECT_NAME} ${SRC_FILES})
if (UNIX)
target_link_libraries(${PROJECT_NAME} ${CMAKE_SOURCE_DIR}/lib/libz.a)
elseif(WIN32)
target_link_libraries(${PROJECT_NAME} ${CMAKE_SOURCE_DIR}/lib/safesehzlib.lib)
endif ()

BIN
lib/libz.a Normal file

Binary file not shown.

BIN
lib/safesehzlib.lib Normal file

Binary file not shown.

View File

@ -3,6 +3,8 @@
#include "pkr.h"
#include "SpideyDX.h"
#include <cstring>
#ifdef _WIN32
EXPORT TCHAR gCurrentDir[260];
#endif