Add CMakeLists.txt

This commit is contained in:
Alexander Batalov
2025-01-14 07:44:20 +03:00
parent cf1e91e354
commit 6c117ee482
3 changed files with 23 additions and 3 deletions
+1
View File
@@ -0,0 +1 @@
/build
+19
View File
@@ -0,0 +1,19 @@
cmake_minimum_required(VERSION 3.16)
project(fpattern
LANGUAGES C
VERSION "1.0.0"
)
add_library(fpattern-static src/fpattern.c)
add_library(fpattern::fpattern ALIAS fpattern-static)
if(NOT WIN32)
target_compile_definitions(fpattern-static PRIVATE
"-Dunix"
)
endif()
target_include_directories(fpattern-static PUBLIC
"${CMAKE_CURRENT_SOURCE_DIR}/include"
)
+3 -3
View File
@@ -51,7 +51,7 @@
*
* Queries about this source code can be sent to: <david@tribble.com>
*
* Copyright ©1997-2001 by David R. Tribble, all rights reserved.
* Copyright 1997-2001 by David R. Tribble, all rights reserved.
*/
@@ -89,9 +89,9 @@ static const char copyright[] =
/* Local includes */
#include "debug.h"
#include "fpattern/debug.h"
#include "fpattern.h"
#include "fpattern/fpattern.h"
/* Local constants */