From 65b97b6836fc346c64401730ae2fdbcda7056130 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 27 Mar 2019 01:11:01 -0400 Subject: [PATCH] Pruned unnecessary stuff from _wip/examples_drawtext_CMakeLists.txt. Not sure what's going to happen to these examples, but we're going to have to keep this particular file around until that's decided. --- _wip/examples_drawtext_CMakeLists.txt | 39 --------------------------- 1 file changed, 39 deletions(-) diff --git a/_wip/examples_drawtext_CMakeLists.txt b/_wip/examples_drawtext_CMakeLists.txt index f2289d21..64b1978a 100644 --- a/_wip/examples_drawtext_CMakeLists.txt +++ b/_wip/examples_drawtext_CMakeLists.txt @@ -1,36 +1,5 @@ # 3 june 2016 -if(WIN32) - set(_EXAMPLE_RESOURCES_RC resources.rc) -endif() - -macro(_add_example _name) - _add_exec(${_name} ${ARGN}) - # because Microsoft's toolchain is dumb - if(MSVC) - set_property(TARGET ${_name} APPEND_STRING PROPERTY - LINK_FLAGS " /ENTRY:mainCRTStartup") - endif() -endmacro() - -_add_example(controlgallery - controlgallery/main.c - ${_EXAMPLE_RESOURCES_RC} -) - -_add_example(histogram - histogram/main.c - ${_EXAMPLE_RESOURCES_RC} -) - -_add_example(cpp-multithread - cpp-multithread/main.cpp - ${_EXAMPLE_RESOURCES_RC} -) -if(NOT WIN32) - target_link_libraries(cpp-multithread pthread) -endif() - _add_example(drawtext drawtext/attributes.c drawtext/basic.c @@ -48,11 +17,3 @@ _add_example(opentype ) target_include_directories(opentype PRIVATE opentype) - -add_custom_target(examples - DEPENDS - controlgallery - histogram - cpp-multithread - drawtext - opentype)