-
-
Notifications
You must be signed in to change notification settings - Fork 557
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4f103d1
commit c068469
Showing
32 changed files
with
2,945 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
set(LIBRARY "cmarkextensions") | ||
set(LIBRARY_SOURCES | ||
${PROJECT_SOURCE_DIR}/src/buffer.c | ||
${PROJECT_SOURCE_DIR}/src/cmark_ctype.c | ||
core-extensions.c | ||
ext_scanners.c | ||
ext_scanners.h | ||
) | ||
|
||
include_directories( | ||
${PROJECT_SOURCE_DIR}/src | ||
${PROJECT_BINARY_DIR}/src | ||
) | ||
|
||
# We make LIB_INSTALL_DIR configurable rather than | ||
# hard-coding lib, because on some OSes different locations | ||
# are used for different architectures (e.g. /usr/lib64 on | ||
# 64-bit Fedora). | ||
if(NOT LIB_INSTALL_DIR) | ||
set(LIB_INSTALL_DIR "lib" CACHE STRING | ||
"Set the installation directory for libraries." FORCE) | ||
endif(NOT LIB_INSTALL_DIR) | ||
|
||
include_directories(. ${CMAKE_CURRENT_BINARY_DIR}) | ||
|
||
set(CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_RELEASE} -pg") | ||
set(CMAKE_LINKER_PROFILE "${CMAKE_LINKER_FLAGS_RELEASE} -pg") | ||
|
||
add_library(${LIBRARY} SHARED ${LIBRARY_SOURCES}) | ||
|
||
target_link_libraries(cmarkextensions libcmark) |
Oops, something went wrong.