mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 19:29:01 +08:00
89c736c3e4
* Add argtable2 port argtable2 include pdbs * [argtable2] Revert removal of DEBUG_POSTFIX
25 lines
1.0 KiB
Diff
25 lines
1.0 KiB
Diff
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
|
index 3427487..a9b8be0 100644
|
|
--- a/src/CMakeLists.txt
|
|
+++ b/src/CMakeLists.txt
|
|
@@ -1,5 +1,4 @@
|
|
-# for now, install in subdirectory of source directory by default
|
|
-SET( CMAKE_INSTALL_PREFIX .. )
|
|
+include(GNUInstallDirs)
|
|
|
|
IF( WIN32 )
|
|
ADD_LIBRARY( argtable2 arg_dbl.c arg_end.c arg_file.c arg_int.c arg_lit.c arg_rem.c arg_str.c argtable2.c argtable2.h getopt.c getopt.h getopt1.c )
|
|
@@ -7,5 +6,9 @@ ELSE( WIN32 )
|
|
ADD_LIBRARY( argtable2 arg_date.c arg_dbl.c arg_end.c arg_file.c arg_int.c arg_lit.c arg_rem.c arg_rex.c arg_str.c argtable2.c argtable2.h getopt.c getopt.h getopt1.c )
|
|
ENDIF( WIN32 )
|
|
|
|
-INSTALL( TARGETS argtable2 ARCHIVE DESTINATION lib)
|
|
-SET_TARGET_PROPERTIES( argtable2 PROPERTIES DEBUG_POSTFIX d )
|
|
\ No newline at end of file
|
|
+INSTALL(TARGETS argtable2
|
|
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
+)
|
|
+INSTALL(FILES argtable2.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|