Browse Source

Try to correct build scripts

bel 9 năm trước cách đây
mục cha
commit
8c4999e950
2 tập tin đã thay đổi với 11 bổ sung11 xóa
  1. 1 1
      appveyor.yml
  2. 10 10
      test/CMakeLists.txt

+ 1 - 1
appveyor.yml

@@ -114,7 +114,7 @@ install:
   - path
 
 environment:
-  OPENSSL_ROOT_DIR: "C:\OpenSSL-Win32"
+  OPENSSL_ROOT_DIR: "C:\\OpenSSL-Win32"
   path: %path%;C:\OpenSSL-Win32;C:\OpenSSL-Win64
   
   

+ 10 - 10
test/CMakeLists.txt

@@ -101,15 +101,15 @@ target_include_directories(
 target_link_libraries(exe-c-unit-tests c-library ${CHECK_LIBRARIES})
 add_dependencies(exe-c-unit-tests check-unit-test-framework)
 
-#add_executable(civetweb-c-unit-test main.c)
-#target_link_libraries(civetweb-c-unit-test
-#  shared-c-unit-tests
-#  public-func-c-unit-tests
-#  public-server-c-unit-tests
-#  private-c-unit-tests
-#  exe-c-unit-tests
-#  ${CHECK_LIBRARIES})
-#add_dependencies(civetweb-c-unit-test check-unit-test-framework)
+add_executable(civetweb-c-unit-test main.c)
+target_link_libraries(civetweb-c-unit-test
+  shared-c-unit-tests
+  public-func-c-unit-tests
+  public-server-c-unit-tests
+  private-c-unit-tests
+  exe-c-unit-tests
+  ${CHECK_LIBRARIES})
+add_dependencies(civetweb-c-unit-test check-unit-test-framework)
 
 # Add a check command that builds the dependent test program
 add_custom_target(check
@@ -161,7 +161,7 @@ civetweb_add_test(PublicServer "Handle Form")
 civetweb_add_test(PublicServer "HTTP Authentication")
 
 # Tests with main.c
-# civetweb_add_test(EXE "Helper funcs")
+#civetweb_add_test(EXE "Helper funcs")
 
 
 # Add the coverage command(s)