Skip to content
Snippets Groups Projects
Commit 27d610b7569b authored by John Kirkham's avatar John Kirkham
Browse files

cmake: Provide support for building dynamic and static libraries.

parent e058c31948ac
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
file (GLOB SRC src/*.c) file (GLOB SRC src/*.c)
include_directories (include win32) include_directories (include win32)
add_definitions (-DHAVE_CONFIG_H -DYAML_DECLARE_STATIC) add_library (yaml SHARED ${SRC})
add_library (yaml STATIC ${SRC}) set_target_properties(yaml PROPERTIES COMPILE_FLAGS "-DYAML_DECLARE_EXPORT -DHAVE_CONFIG_H")
add_library (yaml_static STATIC ${SRC})
set_target_properties(yaml_static PROPERTIES COMPILE_FLAGS "-DYAML_DECLARE_STATIC -DHAVE_CONFIG_H")
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment