Skip to content
This repository
Browse code

Fixed installation.

Adapted dll name (small caps).
  • Loading branch information...
commit 05ff927604a1c30b33cb4709a3ae6dd6c185416f 1 parent 2b3f0da
Hauke Heibel authored May 06, 2010
34  src/CMakeLists.txt
@@ -58,27 +58,41 @@ if (MSVC_IDE)
58 58
   list(APPEND library_files ${CMAKE_CURRENT_BINARY_DIR}/openslide-cmake-dll.rc)
59 59
 endif()
60 60
 
  61
+if(WIN32)
  62
+  set(CMAKE_DEBUG_POSTFIX d)
  63
+endif()
  64
+
61 65
 # finally create the project
62  
-add_library(OpenSlide SHARED ${library_files})
  66
+add_library(openslide SHARED ${library_files})
63 67
 
64 68
 # configure OpenSlide installation
65  
-install(TARGETS OpenSlide
  69
+install(TARGETS openslide
66 70
   RUNTIME DESTINATION bin
67 71
   LIBRARY DESTINATION lib
68 72
   ARCHIVE DESTINATION lib
69  
-  CONFIGURATIONS Release
70 73
 )
71 74
 
  75
+install(FILES openslide.h openslide-features.h
  76
+  DESTINATION include
  77
+)
  78
+
  79
+if(WIN32)
  80
+  install(FILES ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Debug/openslide${CMAKE_DEBUG_POSTFIX}.pdb
  81
+    DESTINATION bin
  82
+    CONFIGURATIONS Debug
  83
+  )
  84
+endif()
  85
+
72 86
 add_definitions(-D_OPENSLIDE_BUILDING_DLL -DOPJ_STATIC)
73 87
 
74 88
 if(WIN32)
75 89
   add_definitions(-D_CRT_SECURE_NO_WARNINGS)
76 90
 endif()
77 91
 
78  
-target_link_libraries(OpenSlide ${JPEG_LIBRARY})
79  
-target_link_libraries(OpenSlide ${OPENJPEG_LIBRARY})
80  
-target_link_libraries(OpenSlide ${TIFF_LIBRARY})
81  
-target_link_libraries(OpenSlide ${ZLIB_LIBRARY})
82  
-target_link_libraries(OpenSlide ${GTK2_CAIRO_LIBRARY})
83  
-target_link_libraries(OpenSlide ${GTK2_GLIB_LIBRARY})
84  
-target_link_libraries(OpenSlide ${GTK2_GTHREAD_LIBRARY})
  92
+target_link_libraries(openslide ${JPEG_LIBRARY})
  93
+target_link_libraries(openslide ${OPENJPEG_LIBRARY})
  94
+target_link_libraries(openslide ${TIFF_LIBRARY})
  95
+target_link_libraries(openslide ${ZLIB_LIBRARY})
  96
+target_link_libraries(openslide ${GTK2_CAIRO_LIBRARY})
  97
+target_link_libraries(openslide ${GTK2_GLIB_LIBRARY})
  98
+target_link_libraries(openslide ${GTK2_GTHREAD_LIBRARY})
2  test/CMakeLists.txt
@@ -14,4 +14,4 @@ if(WIN32)
14 14
 endif()
15 15
 
16 16
 add_executable(openslide_test "test.c")
17  
-target_link_libraries(openslide_test OpenSlide)
  17
+target_link_libraries(openslide_test openslide)

0 notes on commit 05ff927

Please sign in to comment.
Something went wrong with that request. Please try again.