diff --git a/CMakeLists.txt b/CMakeLists.txt index 7981c1e..c6d4b78 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -236,6 +236,8 @@ option(WITH_PNG "Compile with libpng support to dump current screen as png" ON) if(WITH_PNG) target_compile_definitions(infinisim PRIVATE WITH_PNG) add_subdirectory(libpng EXCLUDE_FROM_ALL) + target_include_directories(infinisim PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}") + target_include_directories(infinisim PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/libpng") target_link_libraries(infinisim PRIVATE png_static) endif() diff --git a/main.cpp b/main.cpp index b090f6c..a0a823a 100644 --- a/main.cpp +++ b/main.cpp @@ -61,7 +61,7 @@ #include #include #if defined(WITH_PNG) -#include +#include #endif /*********************