diff options
author | Adrian Kummerlaender | 2016-05-22 16:48:43 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2016-05-22 16:48:43 +0200 |
commit | e02d92e7bcd57b627146a89b694f3767a594c716 (patch) | |
tree | 9f48264d181ef095653f862f623914935b5468a0 | |
parent | 9577bd535a18be9c3348f63ebaf434e1f14b8bcd (diff) | |
download | voronoi-e02d92e7bcd57b627146a89b694f3767a594c716.tar voronoi-e02d92e7bcd57b627146a89b694f3767a594c716.tar.gz voronoi-e02d92e7bcd57b627146a89b694f3767a594c716.tar.bz2 voronoi-e02d92e7bcd57b627146a89b694f3767a594c716.tar.lz voronoi-e02d92e7bcd57b627146a89b694f3767a594c716.tar.xz voronoi-e02d92e7bcd57b627146a89b694f3767a594c716.tar.zst voronoi-e02d92e7bcd57b627146a89b694f3767a594c716.zip |
Extract image generation into shared library
-rw-r--r-- | CMakeLists.txt | 12 |
1 files 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 ) |