src/CMakeLists.txt
branchv_0
changeset 6 22b0fd622175
parent 5 4ec6d1458a58
child 15 825c611933b3
--- a/src/CMakeLists.txt	Sun Dec 09 19:49:03 2018 +0100
+++ b/src/CMakeLists.txt	Tue Dec 18 21:18:12 2018 +0100
@@ -14,11 +14,15 @@
 # You should have received a copy of the GNU General Public License
 # along with this program. If not, see <http://www.gnu.org/licenses/>.
 
-set(LIBRARY_FILE "relpipe-lib-protocol")
+set(LIBRARY_FILE ${PROJECT_CODE}.cpp)
+
+configure_file("pkg-config.cpp.pc.in" "${PROJECT_CODE}.cpp.pc" @ONLY)
 
 # Library output:
 add_library(
 	${LIBRARY_FILE} SHARED
-	relpipe-lib-protocol.cpp
+	${PROJECT_CODE}.cpp
 )
 
+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_CODE}.cpp.pc" DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig/)
+install(DIRECTORY ../include/ DESTINATION include)