fallout2-ce/third_party/fpattern/CMakeLists.txt
Alexander Batalov 55661742a2 Initial commit
2022-05-19 11:51:26 +03:00

20 lines
469 B
CMake

include(FetchContent)
FetchContent_Declare(fpattern
GIT_REPOSITORY "https://github.com/Loadmaster/fpattern"
GIT_TAG "v1.9"
)
FetchContent_GetProperties(fpattern)
if (NOT fpattern_POPULATED)
FetchContent_Populate(fpattern)
endif()
target_sources(fallout2-ce PUBLIC
"${fpattern_SOURCE_DIR}/debug.h"
"${fpattern_SOURCE_DIR}/fpattern.c"
"${fpattern_SOURCE_DIR}/fpattern.h"
)
target_include_directories(fallout2-ce PUBLIC ${fpattern_SOURCE_DIR})