mirror of
https://github.com/alexbatalov/fallout2-ce.git
synced 2024-09-03 13:29:15 +00:00
Reorganize fpattern config
This commit is contained in:
parent
119cfe8212
commit
7174cc703d
@ -243,5 +243,8 @@ target_link_libraries(fallout2-ce
|
||||
)
|
||||
|
||||
add_subdirectory("third_party/fpattern")
|
||||
target_link_libraries(fallout2-ce ${FPATTERN_LIBRARY})
|
||||
target_include_directories(fallout2-ce PRIVATE ${FPATTERN_INCLUDE_DIR})
|
||||
|
||||
add_subdirectory("third_party/zlib")
|
||||
add_subdirectory("third_party/sdl2")
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include "dfile.h"
|
||||
|
||||
#include "fpattern.h"
|
||||
#include <fpattern.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include <io.h>
|
||||
|
9
third_party/fpattern/CMakeLists.txt
vendored
9
third_party/fpattern/CMakeLists.txt
vendored
@ -10,10 +10,15 @@ if (NOT fpattern_POPULATED)
|
||||
FetchContent_Populate(fpattern)
|
||||
endif()
|
||||
|
||||
target_sources(fallout2-ce PUBLIC
|
||||
if(MSVC)
|
||||
set(CMAKE_DEBUG_POSTFIX "d")
|
||||
endif()
|
||||
|
||||
add_library(fpattern STATIC
|
||||
"${fpattern_SOURCE_DIR}/debug.h"
|
||||
"${fpattern_SOURCE_DIR}/fpattern.c"
|
||||
"${fpattern_SOURCE_DIR}/fpattern.h"
|
||||
)
|
||||
|
||||
target_include_directories(fallout2-ce PUBLIC ${fpattern_SOURCE_DIR})
|
||||
set(FPATTERN_LIBRARY "fpattern" PARENT_SCOPE)
|
||||
set(FPATTERN_INCLUDE_DIR "${fpattern_SOURCE_DIR}" PARENT_SCOPE)
|
||||
|
Loading…
Reference in New Issue
Block a user