mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
9 lines
311 B
CMake
9 lines
311 B
CMake
file(GLOB PCRE_SOURCES "*.c" "*.cc")
|
|
|
|
add_library(pcre STATIC ${PCRE_SOURCES})
|
|
target_compile_definitions(pcre PUBLIC PCRE_STATIC HAVE_CONFIG_H)
|
|
target_include_directories(pcre PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
if(WIN32)
|
|
set_property(TARGET pcre PROPERTY COMPILE_FLAGS /TP) #/TP = compile as C++
|
|
endif()
|