Explorar el Código

add ENCRYPTION_DIR in windows cmake setting

jack hace 5 años
padre
commit
7df7269a7b
Se han modificado 2 ficheros con 8 adiciones y 1 borrados
  1. 3 1
      deploy/cpp/CMakeLists.txt
  2. 5 0
      deploy/cpp/CMakeSettings.json

+ 3 - 1
deploy/cpp/CMakeLists.txt

@@ -236,7 +236,9 @@ if(WITH_ENCRYPTION)
       link_directories("${ENCRYPTION_DIR}/lib")
       set(DEPS ${DEPS} ${ENCRYPTION_DIR}/lib/libpmodel-decrypt${CMAKE_SHARED_LIBRARY_SUFFIX})
   else()
-    message(FATAL_ERROR "Encryption Tool don't support WINDOWS")
+      include_directories("${ENCRYPTION_DIR}/include")
+      link_directories("${ENCRYPTION_DIR}/lib")
+      set(DEPS ${DEPS} ${ENCRYPTION_DIR}/lib/pmodel-decrypt${CMAKE_SHARED_LIBRARY_SUFFIX})
   endif()
 endif()
 

+ 5 - 0
deploy/cpp/CMakeSettings.json

@@ -50,6 +50,11 @@
                     "name": "WITH_ENCRYPTION",
                     "value": "False",
                     "type": "BOOL"
+                },
+                {
+                    "name": "ENCRYPTION_DIR",
+                    "value": "",
+                    "type": "PATH"
                 }
             ]
         }