shithub: dumb

Download patch

ref: 73daeb3e2a74bed5303a579beef8106572abc096
parent: cab1803f1d6517754696b5c3d9b600e23ef9015e
author: Andreas Gnau <Rondom@Rondom.de>
date: Sun Oct 22 22:48:38 EDT 2017

Only add SDL and Argtable include-dir for examples

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -181,10 +181,12 @@
         target_link_libraries(dumbplay mingw32)
     endif()
 
+    target_include_directories(dumbout PRIVATE ${ARGTABLE2_INCLUDE_DIR})
     target_link_libraries(dumbout ${ARGTABLE2_LIBRARY} m dumb)
+
+    target_include_directories(dumbplay PRIVATE ${ARGTABLE2_INCLUDE_DIR} ${SDL2_INCLUDE_DIR})
     target_link_libraries(dumbplay ${ARGTABLE2_LIBRARY} ${SDL2_LIBRARY} dumb)
 
-    include_directories(${ARGTABLE2_INCLUDE_DIR} ${SDL2_INCLUDE_DIR} "examples/")
     list(APPEND DUMB_TARGETS "dumbout" "dumbplay")
 endif()