mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
10 lines
311 B
CMake
10 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()
|