OLD | NEW |
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 Loading... |
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}) |
OLD | NEW |