summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorTony Wasserka <NeoBrainX@gmail.com>2014-08-16 14:06:40 +0200
committerTony Wasserka <NeoBrainX@gmail.com>2014-08-25 22:03:18 +0200
commitc4691b784bd7746c5845df00a82ea0909b37ec0f (patch)
tree635fa4cea0fa7c487217c8799cb90c45ebc12841 /CMakeLists.txt
parentPica/Math: Improved the design of the Vec2/Vec3/Vec4 classes and simplified rasterizer code accordingly. (diff)
downloadyuzu-c4691b784bd7746c5845df00a82ea0909b37ec0f.tar
yuzu-c4691b784bd7746c5845df00a82ea0909b37ec0f.tar.gz
yuzu-c4691b784bd7746c5845df00a82ea0909b37ec0f.tar.bz2
yuzu-c4691b784bd7746c5845df00a82ea0909b37ec0f.tar.lz
yuzu-c4691b784bd7746c5845df00a82ea0909b37ec0f.tar.xz
yuzu-c4691b784bd7746c5845df00a82ea0909b37ec0f.tar.zst
yuzu-c4691b784bd7746c5845df00a82ea0909b37ec0f.zip
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 56f5d02b0..4c7b3dd73 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,6 +9,11 @@ add_definitions(-Wno-attributes)
add_definitions(-DSINGLETHREADED)
add_definitions(${CXX_COMPILE_FLAGS})
+find_package(PNG)
+if (PNG_FOUND)
+ add_definitions(-DHAVE_PNG)
+endif ()
+
# dependency checking
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/externals/cmake-modules/")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/CMakeTests)