CMakeLists.txt: add cmake_minimum_required

This command is mandatory for all CMake projects. 3.0 was chosen since
dynstr does not require any newer CMake features.
This commit is contained in:
Xavier Del Campo Romero 2023-10-02 14:38:53 +02:00
parent 58bd7d9376
commit 0e779caae6
Signed by: xavi
GPG Key ID: 84FF3612A9BF43F2
1 changed files with 1 additions and 0 deletions

View File

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
cmake_minimum_required(VERSION 3.0)
project(dynstr C)
add_library(${PROJECT_NAME} STATIC "dynstr.c")
target_include_directories(${PROJECT_NAME} PUBLIC "include")