aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-11-07 08:23:39 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-07 08:23:39 -0800
commitfb3dcc42bddd0f23c32a243d532a96f663ed243e (patch)
tree4ea949c1cb27b9873ba76ac0be9a19b7b0ac286e /src
parent423de04c79ec06f0bdfeb0d5087fbb88071a6b92 (diff)
Reformatted src/CMakeLists.txt.
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt69
1 files changed, 36 insertions, 33 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f5fe29d..b448d06 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,33 +1,38 @@
set(LIBRARY "commonmark")
-set(HEADERS cmark.h
- buffer.h
- chunk.h
- references.h
- debug.h
- utf8.h
- scanners.h
- inlines.h
- html/html_unescape.h
- html/houdini.h
- )
-set(LIBRARY_SOURCES blocks.c
- inlines.c
- print.c
- scanners.c
- scanners.re
- utf8.c
- buffer.c
- references.c
- html/html.c
- html/html_unescape.gperf
- html/houdini_href_e.c
- html/houdini_html_e.c
- html/houdini_html_u.c
- ${HEADERS}
- )
+set(HEADERS
+ cmark.h
+ buffer.h
+ chunk.h
+ references.h
+ debug.h
+ utf8.h
+ scanners.h
+ inlines.h
+ html/html_unescape.h
+ html/houdini.h
+ )
+set(LIBRARY_SOURCES
+ blocks.c
+ inlines.c
+ print.c
+ scanners.c
+ scanners.re
+ utf8.c
+ buffer.c
+ references.c
+ html/html.c
+ html/html_unescape.gperf
+ html/houdini_href_e.c
+ html/houdini_html_e.c
+ html/houdini_html_u.c
+ ${HEADERS}
+ )
+
set(PROGRAM "cmark")
-set(PROGRAM_SOURCES ${LIBRARY_SOURCES}
- main.c)
+set(PROGRAM_SOURCES
+ ${LIBRARY_SOURCES}
+ main.c
+ )
include_directories(. html)
@@ -42,8 +47,7 @@ else(MSVC)
COMMAND ${RE2C} --case-insensitive -b -i ${CMAKE_CURRENT_SOURCE_DIR}/scanners.re >${CMAKE_CURRENT_SOURCE_DIR}/scanners.c)
endif(MSVC)
-add_executable(${PROGRAM}
- ${PROGRAM_SOURCES})
+add_executable(${PROGRAM} ${PROGRAM_SOURCES})
add_library(${LIBRARY} SHARED ${LIBRARY_SOURCES})
@@ -52,9 +56,8 @@ set_property(TARGET ${LIBRARY}
if (MSVC)
set_property(TARGET ${PROGRAM}
- APPEND PROPERTY LINK_FLAGS /INCREMENTAL:NO)
-# if sometimes libs are needed ...
-#target_link_libraries(${PROGRAM_chronolog})
+ APPEND PROPERTY LINK_FLAGS /INCREMENTAL:NO)
+
endif(MSVC)
install(TARGETS ${PROGRAM} ${LIBRARY}
RUNTIME DESTINATION bin