Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
yaml-cpp
Commits
ff6e6bdf
Commit
ff6e6bdf
authored
Jul 15, 2009
by
Jesse Beder
Browse files
Added support for pkgconfig
parent
a84c1af9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
3 deletions
+21
-3
CMakeLists.txt
CMakeLists.txt
+10
-3
yaml-cpp.pc.cmake
yaml-cpp.pc.cmake
+11
-0
No files found.
CMakeLists.txt
View file @
ff6e6bdf
...
@@ -18,15 +18,17 @@ if(WIN32)
...
@@ -18,15 +18,17 @@ if(WIN32)
else
(
WIN32
)
else
(
WIN32
)
set
(
_library_dir lib
)
set
(
_library_dir lib
)
endif
(
WIN32
)
endif
(
WIN32
)
set
(
INCLUDE_INSTALL_DIR include/yaml-cpp
)
set
(
LIB_INSTALL_DIR
${
_library_dir
}${
LIB_SUFFIX
}
)
#
#
set
(
_INSTALL_DESTINATIONS
set
(
_INSTALL_DESTINATIONS
RUNTIME DESTINATION bin
RUNTIME DESTINATION bin
LIBRARY DESTINATION
${
_library_dir
}${
LIB_SUFFIX
}
LIBRARY DESTINATION
${
LIB_INSTALL_DIR
}
ARCHIVE DESTINATION lib
${
LIB_SUFFIX
}
ARCHIVE DESTINATION lib
${
LIB_SUFFIX
}
)
)
#
#
set
(
INCLUDE_INSTALL_DIR include/yaml-cpp
)
file
(
GLOB public_headers include/*.h
)
file
(
GLOB public_headers include/*.h
)
file
(
GLOB private_headers src/*.h
)
file
(
GLOB private_headers src/*.h
)
file
(
GLOB sources src/*.cpp
)
file
(
GLOB sources src/*.cpp
)
...
@@ -48,5 +50,10 @@ install(
...
@@ -48,5 +50,10 @@ install(
DESTINATION
${
INCLUDE_INSTALL_DIR
}
DESTINATION
${
INCLUDE_INSTALL_DIR
}
)
)
if
(
UNIX
)
configure_file
(
"yaml-cpp.pc.cmake"
yaml-cpp.pc @ONLY
)
install
(
FILES yaml-cpp.pc DESTINATION
${
LIB_INSTALL_DIR
}
/pkgconfig
)
endif
(
UNIX
)
add_subdirectory
(
yaml-reader
)
add_subdirectory
(
yaml-reader
)
add_subdirectory
(
util
)
add_subdirectory
(
util
)
yaml-cpp.pc.cmake
0 → 100644
View file @
ff6e6bdf
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=@CMAKE_INSTALL_PREFIX@
libdir=@LIB_INSTALL_DIR@
includedir=@INCLUDE_INSTALL_DIR@
Name: Yaml-cpp
Description: A YAML parser for C++
Version: @YAML_CPP_VERSION@
Requires:
Libs: -L
${
libdir
}
-lyaml-cpp
Cflags: -I
${
includedir
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment