From e02d92e7bcd57b627146a89b694f3767a594c716 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 22 May 2016 16:48:43 +0200 Subject: Extract image generation into shared library --- CMakeLists.txt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 45e09e3..72d3e40 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,27 +10,31 @@ include_directories( src/ ) +add_library( + imgen SHARED + src/imgen.cc + src/ppm_pixel_stream.cc +) + add_executable( voronoi voronoi.cc - src/imgen.cc - src/ppm_pixel_stream.cc ) add_executable( unit_circle unit_circle.cc - src/imgen.cc - src/ppm_pixel_stream.cc ) target_link_libraries( voronoi m + imgen pthread ) target_link_libraries( unit_circle m + imgen ) -- cgit v1.2.3