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

Side by Side Diff: cmake/CMakeLists.txt

Issue 1325903004: CMAKE + install command (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-09-03 (Thursday) 17:05:13 EDT 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 | experimental/c-api-example/c.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.1) # First version with CMAKE_CXX_STANDARD. 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
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 target_link_libraries(skia 215 target_link_libraries(skia
216 PUBLIC 216 PUBLIC
217 PRIVATE ${libs}) 217 PRIVATE ${libs})
218 218
219 219
220 set_target_properties(skia PROPERTIES 220 set_target_properties(skia PROPERTIES
221 COMPILE_FLAGS "-fno-exceptions -fno-rtti -Wno-deprecated-declarations" 221 COMPILE_FLAGS "-fno-exceptions -fno-rtti -Wno-deprecated-declarations"
222 CXX_VISIBILITY_PRESET hidden 222 CXX_VISIBILITY_PRESET hidden
223 VISIBILITY_INLINES_HIDDEN true) 223 VISIBILITY_INLINES_HIDDEN true)
224 224
225 # Experimental C API install:
226 file(GLOB cheaders "../include/c/*.h")
227 install(FILES ${cheaders} DESTINATION include)
228 install(TARGETS skia DESTINATION lib)
229
225 # Now build a simple example app that uses Skia via libskia.so. 230 # Now build a simple example app that uses Skia via libskia.so.
226 add_executable(example example.cpp) 231 add_executable(example example.cpp)
227 target_link_libraries(example skia ${OPENGL_LIBRARIES}) 232 target_link_libraries(example skia ${OPENGL_LIBRARIES})
OLDNEW
« no previous file with comments | « no previous file | experimental/c-api-example/c.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698