diff options
author | Roger Leigh <rleigh@codelibre.net> | 2021-01-07 20:11:39 +0000 |
---|---|---|
committer | miguel <medalist@sapo.pt> | 2021-01-07 21:47:41 +0000 |
commit | ec5e1524de670f582fcc1bc17c2e4cbea05e42c7 (patch) | |
tree | b60425d94abdc05d3ffeffed1ff4a35ed95ab289 /test | |
parent | 71c033cca36f4089bd491f257295f6ebda72a475 (diff) | |
download | libtiff-git-ec5e1524de670f582fcc1bc17c2e4cbea05e42c7.tar.gz |
cmake: Use target_include_directories correctly
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index bffb8bf7..d5c31f24 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -22,11 +22,6 @@ # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. -include_directories(${PROJECT_SOURCE_DIR}/libtiff - ${PROJECT_BINARY_DIR}/libtiff - ${CMAKE_CURRENT_BINARY_DIR} - ${TIFF_INCLUDES}) - # Test scripts (not used by CMake) set(TESTSCRIPTS bmp2tiff_palette.sh @@ -192,6 +187,7 @@ target_link_libraries(rewrite tiff port) if(JPEG_SUPPORT) add_executable(raw_decode raw_decode.c) + target_include_directories(raw_decode PRIVATE ${JPEG_INCLUDE_DIR}) target_link_libraries(raw_decode tiff port) endif() |