forked from commonmark/cmark
-
Notifications
You must be signed in to change notification settings - Fork 97
/
Copy pathCMakeLists.txt
37 lines (35 loc) · 1.21 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
add_library(libcmark-gfm-extensions
autolink.c
core-extensions.c
ext_scanners.c
ext_scanners.h
ext_scanners.re
strikethrough.c
table.c
tagfilter.c
tasklist.c)
target_compile_definitions(libcmark-gfm-extensions PUBLIC
$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:CMARK_GFM_STATIC_DEFINE>)
target_include_directories(libcmark-gfm-extensions PUBLIC
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/cmark_gfm_extensions>)
target_link_libraries(libcmark-gfm-extensions PRIVATE
libcmark-gfm)
set_target_properties(libcmark-gfm-extensions PROPERTIES
DEFINE_SYMBOL libcmark_gfm_EXPORTS
MACOSX_RPATH TRUE
OUTPUT_NAME cmark-gfm-extensions
PDB_NAME libcmark-gfm-extensions
POSITION_INDEPENDENT_CODE YES
SOVERSION ${PROJECT_VERSION}
VERSION ${PROJECT_VERSION})
install(TARGETS libcmark-gfm-extensions
EXPORT cmark-gfm-extensions
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(FILES
include/cmark-gfm-core-extensions.h
include/module.modulemap
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/cmark_gfm_extensions)
install(EXPORT cmark-gfm-extensions
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/cmark-gfm-extensions)