Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 74 lines (53 sloc) 1.672 kb
446beeb @thughes Add cmake build support.
thughes authored
1 cmake_minimum_required(VERSION 2.6)
2 project(node)
3
4 #
5 # options
6 #
7
8 option(SHARED_V8 "use system shared V8 library")
9 option(SHARED_LIBEV "use system shared libev library")
10 option(SHARED_CARES "use system shared c-ares library")
11 option(V8_SNAPSHOT "turn on snapshot when building stock v8")
12
13
14 # cmake policies to get rid of some warnings
ea29cb4 @DanielG cmake cleanup
DanielG authored
15 cmake_policy(SET CMP0009 NEW) # GLOB_RECURSE should no follow symlinks
446beeb @thughes Add cmake build support.
thughes authored
16
17 # generic cmake configuration
18 include("cmake/configure.cmake")
19
20 # find and configure libs
21 include("cmake/libs.cmake")
22
23 # setup node build targets
24 include("cmake/node_build.cmake")
25
26 # setup v8 build targets
27 include("cmake/v8_build.cmake")
28
29 # docs
ea29cb4 @DanielG cmake cleanup
DanielG authored
30 ## might want to move this to doc/CMakeLists.txt
446beeb @thughes Add cmake build support.
thughes authored
31 include("cmake/docs.cmake")
32
33 # tests
ea29cb4 @DanielG cmake cleanup
DanielG authored
34 enable_testing()
35 add_subdirectory("test/")
446beeb @thughes Add cmake build support.
thughes authored
36
37 # package
38 include("cmake/package.cmake")
39
40
41 #
42 # Final build configuration output
43 #
44
45 message("** Build Summary **")
46 message(" Version: ${node_version_string}")
47 message(" Prefix: ${PREFIX}")
48 message(" Build Type: ${CMAKE_BUILD_TYPE}")
49 message(" Architecture: ${CMAKE_SYSTEM_PROCESSOR}")
50
51 if(SHARED_V8)
52 message(" V8: ${V8_LIBRARY_PATH}")
53 #else()
54 #message(" V8 jobs: ${parallel_jobs}")
55 endif()
56
57 if(SHARED_libev)
58 message(" libev: ${LIBEV_LIBRARY}")
59 endif()
60
61 if(SHARED_CARES)
62 message(" libc-ares: ${LIBCARES_LIBRARY}")
63 endif()
64
65 message(" RT library: ${RT}")
66 message(" DL library: ${DL}")
67
68 if(${OPENSSL_FOUND} MATCHES TRUE)
ea29cb4 @DanielG cmake cleanup
DanielG authored
69 message(" OpenSSL: ${OPENSSL_LIBRARIES}")
446beeb @thughes Add cmake build support.
thughes authored
70 endif()
71
72 # message(" CCFLAGS: ${CCFLAGS}")
73 # message(" CPPFLAGS: ${CPPFLAGS}")
Something went wrong with that request. Please try again.