mirror of
https://github.com/fallout2-ce/fpattern.git
synced 2026-07-27 16:47:36 -07:00
Add CMakeLists.txt
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
/build
|
||||||
@@ -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
@@ -51,7 +51,7 @@
|
|||||||
*
|
*
|
||||||
* Queries about this source code can be sent to: <david@tribble.com>
|
* 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 */
|
/* Local includes */
|
||||||
|
|
||||||
#include "debug.h"
|
#include "fpattern/debug.h"
|
||||||
|
|
||||||
#include "fpattern.h"
|
#include "fpattern/fpattern.h"
|
||||||
|
|
||||||
|
|
||||||
/* Local constants */
|
/* Local constants */
|
||||||
|
|||||||
Reference in New Issue
Block a user