mirror of
https://github.com/PCRE2Project/pcre2.git
synced 2025-10-15 20:37:00 +08:00

Additionally, I have attempted to clean up some CMake issues to make the package's build interface cleaner, in particular, avoiding polluting the parent directory's include path with our config.h file (if PCRE2 is being included as a subdirectory). This re-adds changes from Theodore's commit:def175f4a9
and partially reverts changes from Carlo's commit:92d56a1f7c
--------- Co-authored-by: Theodore Tsirpanis <teo@tsirpanis.gr>
13 lines
386 B
CMake
13 lines
386 B
CMake
cmake_minimum_required(VERSION 3.15)
|
|
project(TestBuildInterface C)
|
|
set(CMAKE_C_STANDARD 99)
|
|
set(CMAKE_C_STANDARD_REQUIRED TRUE)
|
|
|
|
# To test the static vs dynamic interface, uncomment one of the following lines:
|
|
# set(BUILD_STATIC_LIBS OFF)
|
|
# set(BUILD_SHARED_LIBS ON)
|
|
add_subdirectory(pcre2)
|
|
|
|
add_executable(test_executable main.c)
|
|
target_link_libraries(test_executable PRIVATE pcre2-8)
|