Moved the old drawtext example out of the way.
This commit is contained in:
parent
4bb6a56c99
commit
8fda407183
|
@ -0,0 +1,58 @@
|
|||
# 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
|
||||
drawtext/emptystr_hittest.c
|
||||
drawtext/hittest.c
|
||||
drawtext/main.c
|
||||
${_EXAMPLE_RESOURCES_RC}
|
||||
)
|
||||
target_include_directories(drawtext
|
||||
PRIVATE drawtext)
|
||||
|
||||
_add_example(opentype
|
||||
opentype/main.c
|
||||
${_EXAMPLE_RESOURCES_RC}
|
||||
)
|
||||
target_include_directories(opentype
|
||||
PRIVATE opentype)
|
||||
|
||||
add_custom_target(examples
|
||||
DEPENDS
|
||||
controlgallery
|
||||
histogram
|
||||
cpp-multithread
|
||||
drawtext
|
||||
opentype)
|
|
@ -31,17 +31,6 @@ if(NOT WIN32)
|
|||
target_link_libraries(cpp-multithread pthread)
|
||||
endif()
|
||||
|
||||
_add_example(drawtext
|
||||
drawtext/attributes.c
|
||||
drawtext/basic.c
|
||||
drawtext/emptystr_hittest.c
|
||||
drawtext/hittest.c
|
||||
drawtext/main.c
|
||||
${_EXAMPLE_RESOURCES_RC}
|
||||
)
|
||||
target_include_directories(drawtext
|
||||
PRIVATE drawtext)
|
||||
|
||||
_add_example(opentype
|
||||
opentype/main.c
|
||||
${_EXAMPLE_RESOURCES_RC}
|
||||
|
|
Loading…
Reference in New Issue