Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1211)

Side by Side Diff: cmake/CMakeLists.txt

Issue 1323093002: CMake tweaks (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update readme Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | cmake/README.md » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Boilerplate. 1 # Boilerplate.
2 cmake_minimum_required (VERSION 3.3) # The latest version as I write this. Ma y be too strict. 2 cmake_minimum_required (VERSION 3.1) # First version with CMAKE_CXX_STANDARD.
3 project (skimake) 3 project (skimake)
4 set (CMAKE_CXX_STANDARD 11) 4 set (CMAKE_CXX_STANDARD 11)
5 5
6 # Default to Release mode. We're mainly targeting Skia users, not Skia develope rs. 6 # Default to Release mode. We're mainly targeting Skia users, not Skia develope rs.
7 if (NOT CMAKE_BUILD_TYPE) 7 if (NOT CMAKE_BUILD_TYPE)
8 set (CMAKE_BUILD_TYPE Release) 8 set (CMAKE_BUILD_TYPE Release)
9 endif () 9 endif ()
10 10
11 # To first approximation, the Skia library comprises all .cpp files under src/. 11 # To first approximation, the Skia library comprises all .cpp files under src/.
12 file (GLOB_RECURSE srcs ../src/*.cpp) 12 file (GLOB_RECURSE srcs ../src/*.cpp)
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 216
217 set_target_properties(skia PROPERTIES 217 set_target_properties(skia PROPERTIES
218 COMPILE_FLAGS "-fno-exceptions -fno-rtti -Wno-deprecated-declarations" 218 COMPILE_FLAGS "-fno-exceptions -fno-rtti -Wno-deprecated-declarations"
219 CXX_VISIBILITY_PRESET hidden 219 CXX_VISIBILITY_PRESET hidden
220 VISIBILITY_INLINES_HIDDEN true) 220 VISIBILITY_INLINES_HIDDEN true)
221 221
222 # Now build a simple example app that uses Skia via libskia.so. 222 # Now build a simple example app that uses Skia via libskia.so.
223 find_package(OpenGL REQUIRED) 223 find_package(OpenGL REQUIRED)
224 add_executable(example example.cpp) 224 add_executable(example example.cpp)
225 target_link_libraries(example skia ${OPENGL_LIBRARIES}) 225 target_link_libraries(example skia ${OPENGL_LIBRARIES})
OLDNEW
« no previous file with comments | « no previous file | cmake/README.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698