Skip to content

Commit

Permalink
Use CMake project version with pkgconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
mdpiper committed Oct 23, 2023
1 parent bfad9d5 commit a243579
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# bmi-example-cxx

cmake_minimum_required(VERSION 3.12)
project (bmi-example-cxx LANGUAGES CXX)
project(bmi-example-cxx
VERSION 2.1
LANGUAGES CXX
)

include(GNUInstallDirs)

Expand Down
2 changes: 1 addition & 1 deletion heat/heatcxx.pc.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: HeatCXX
Description: 2D Heat Equation
Version: ${HEAT_VERSION}
Version: ${CMAKE_PROJECT_VERSION}
Libs: -L${CMAKE_INSTALL_LIBDIR} -l${bmi_name}
Cflags: -I${CMAKE_INSTALL_INCLUDEDIR}

0 comments on commit a243579

Please sign in to comment.