Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 75 lines (54 sloc) 1.687 kb
446beeb Tom Hughes 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 Daniel Gröber cmake cleanup
DanielG authored
15 cmake_policy(SET CMP0009 NEW) # GLOB_RECURSE should no follow symlinks
446beeb Tom Hughes 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 Daniel Gröber cmake cleanup
DanielG authored
30 ## might want to move this to doc/CMakeLists.txt
446beeb Tom Hughes Add cmake build support.
thughes authored
31 include("cmake/docs.cmake")
32
33 # tests
ea29cb4 Daniel Gröber cmake cleanup
DanielG authored
34 enable_testing()
14e6b07 Tom Hughes cmake: Add cdash support.
thughes authored
35 include(CTest)
ea29cb4 Daniel Gröber cmake cleanup
DanielG authored
36 add_subdirectory("test/")
446beeb Tom Hughes Add cmake build support.
thughes authored
37
38 # package
39 include("cmake/package.cmake")
40
41
42 #
43 # Final build configuration output
44 #
45
46 message("** Build Summary **")
47 message(" Version: ${node_version_string}")
48 message(" Prefix: ${PREFIX}")
49 message(" Build Type: ${CMAKE_BUILD_TYPE}")
50 message(" Architecture: ${CMAKE_SYSTEM_PROCESSOR}")
51
52 if(SHARED_V8)
53 message(" V8: ${V8_LIBRARY_PATH}")
54 #else()
55 #message(" V8 jobs: ${parallel_jobs}")
56 endif()
57
58 if(SHARED_libev)
59 message(" libev: ${LIBEV_LIBRARY}")
60 endif()
61
62 if(SHARED_CARES)
63 message(" libc-ares: ${LIBCARES_LIBRARY}")
64 endif()
65
66 message(" RT library: ${RT}")
67 message(" DL library: ${DL}")
68
69 if(${OPENSSL_FOUND} MATCHES TRUE)
ea29cb4 Daniel Gröber cmake cleanup
DanielG authored
70 message(" OpenSSL: ${OPENSSL_LIBRARIES}")
446beeb Tom Hughes Add cmake build support.
thughes authored
71 endif()
72
73 # message(" CCFLAGS: ${CCFLAGS}")
74 # message(" CPPFLAGS: ${CPPFLAGS}")
Something went wrong with that request. Please try again.