|
@@ -12,9 +12,15 @@ SET(PADDLE_DIR "" CACHE PATH "Location of libraries")
|
|
|
SET(OPENCV_DIR "" CACHE PATH "Location of libraries")
|
|
SET(OPENCV_DIR "" CACHE PATH "Location of libraries")
|
|
|
SET(ENCRYPTION_DIR"" CACHE PATH "Location of libraries")
|
|
SET(ENCRYPTION_DIR"" CACHE PATH "Location of libraries")
|
|
|
SET(CUDA_LIB "" CACHE PATH "Location of libraries")
|
|
SET(CUDA_LIB "" CACHE PATH "Location of libraries")
|
|
|
-set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
|
|
|
|
-set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
|
|
|
|
-set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/demo)
|
|
|
|
|
|
|
+
|
|
|
|
|
+if (NOT WIN32)
|
|
|
|
|
+ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
|
|
|
|
+ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
|
|
|
|
+ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/demo)
|
|
|
|
|
+else()
|
|
|
|
|
+ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/paddlex_inference)
|
|
|
|
|
+ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/paddlex_inference)
|
|
|
|
|
+endif()
|
|
|
|
|
|
|
|
if (NOT WIN32)
|
|
if (NOT WIN32)
|
|
|
SET(YAML_BUILD_TYPE ON CACHE BOOL "yaml build shared library.")
|
|
SET(YAML_BUILD_TYPE ON CACHE BOOL "yaml build shared library.")
|