You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(CMAKE_BUILD_TYPE AND CMAKE_BUILD_TYPE STREQUAL "Debug")
message("Building snippet in debug configuration")
add_compile_definitions(_DEBUG)
link_directories("../../physx/bin/win.x86_64.vc142.mt/debug") # This is the path where PhysX libraries are installed
else()
message("Building snippet in release configuration with PhysX ${PHYSX_BUILD_TYPE} configuration")
add_compile_definitions(NDEBUG)
link_directories("PhysX/bin/linux.clang/${PHYSX_BUILD_TYPE}") # This is the path where PhysX libraries are installed
endif()
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
after build libs and includes, i built my project and it shows m128_u32 error
and cmake file like:
cmake_minimum_required(VERSION 3.7)
set(CMAKE_CXX_STANDARD 20)
project(CoreServer)
option(PHYSX_BUILD_TYPE debug)
Include PhysX headers
include_directories("../../physx/include")
Get all the .cpp files in the current directory and its subdirectories
#file(GLOB_RECURSE SOURCES ".cpp" EXCLUDE "examples/")
Get all the header files in the current directory and its subdirectories
#file(GLOB_RECURSE HEADERS ".h" ".hpp" EXCLUDE "examples/*")
Exclude CompilerId files
#list(REMOVE_ITEM SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/CMakeFiles/${CMAKE_CXX_COMPILER_ID}/CMakeCXXCompilerId.cpp")
#list(REMOVE_ITEM HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/CMakeFiles/${CMAKE_CXX_COMPILER_ID}/CMakeCXXCompilerId.h")
if(CMAKE_BUILD_TYPE AND CMAKE_BUILD_TYPE STREQUAL "Debug")
message("Building snippet in debug configuration")
add_compile_definitions(_DEBUG)
link_directories("../../physx/bin/win.x86_64.vc142.mt/debug") # This is the path where PhysX libraries are installed
else()
message("Building snippet in release configuration with PhysX ${PHYSX_BUILD_TYPE} configuration")
add_compile_definitions(NDEBUG)
link_directories("PhysX/bin/linux.clang/${PHYSX_BUILD_TYPE}") # This is the path where PhysX libraries are installed
endif()
add_executable(CoreServer main.cpp)
target_link_libraries(CoreServer
PhysXExtensions_static_64.lib
PhysX_static_64.lib
PhysXPvdSDK_static_64.lib
PhysXCommon_static_64.lib
PhysXFoundation_static_64.lib
)
Beta Was this translation helpful? Give feedback.
All reactions