diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-05-29 15:12:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-29 15:12:21 -0700 |
commit | a4f88c7d7c94107df6bfada31617ff553bb5e89e (patch) | |
tree | cb0d3adbbe115604051300ae451a22a4de751b27 /src/video_core | |
parent | 3df85a103a39c4d304da8734a862315a3e619a90 (diff) | |
parent | 9a08160ae5bf62ef687999883461669dce8ef0cd (diff) |
Merge pull request #2734 from yuriks/cmake-imported-libs
CMake: Use CMake target properties for all libraries
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/CMakeLists.txt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/video_core/CMakeLists.txt b/src/video_core/CMakeLists.txt index e455f03bd..0961a3251 100644 --- a/src/video_core/CMakeLists.txt +++ b/src/video_core/CMakeLists.txt @@ -80,14 +80,13 @@ create_directory_groups(${SRCS} ${HEADERS}) add_library(video_core STATIC ${SRCS} ${HEADERS}) target_link_libraries(video_core PUBLIC common core) -target_link_libraries(video_core PRIVATE glad) +target_link_libraries(video_core PRIVATE glad nihstro-headers) if (ARCHITECTURE_x86_64) target_link_libraries(video_core PRIVATE xbyak) endif() if (PNG_FOUND) - target_link_libraries(video_core PRIVATE ${PNG_LIBRARIES}) - target_include_directories(video_core PRIVATE ${PNG_INCLUDE_DIRS}) - target_compile_definitions(video_core PRIVATE ${PNG_DEFINITIONS}) + target_link_libraries(video_core PRIVATE PNG::PNG) + target_compile_definitions(video_core PRIVATE HAVE_PNG) endif() |