shithub: dumb

Download patch

ref: 3529032f760e3778cc51a7c083c1463d92a19ade
parent: 275504320c6b9452ef3125646576ffec1ec8c3bd
parent: 73daeb3e2a74bed5303a579beef8106572abc096
author: Christopher Snowhill <kode54@gmail.com>
date: Mon Oct 23 13:06:13 EDT 2017

Merge pull request #74 from Rondom/include_dir

Include-dir fixes and changes

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -168,6 +168,7 @@
     set_target_properties(aldmb PROPERTIES SOVERSION ${DUMB_VERSION_MAJOR})
     list(APPEND DUMB_TARGETS aldmb)
     list(APPEND INSTALL_HEADERS include/aldumb.h)
+    target_include_directories(aldmb PUBLIC ${ALLEGRO_INCLUDE_DIR})
     target_link_libraries(aldmb ${ALLEGRO_LIBRARIES} dumb)
 endif()
 
@@ -180,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()