~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to tests/cmake/target_js/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-09-20 22:44:35 UTC
  • mfrom: (4.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20130920224435-apuwj4fsl3fqv1a6
Tags: 1.5.6~20130920~6010666-1
* New snapshot release
* Update the list of supported architectures to the same as libv8
  (Closes: #723129)
* emlibtool has been removed from upstream.
* Fix warning syntax-error-in-dep5-copyright
* Refresh of the patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
cmake_minimum_required(VERSION 2.8)
2
2
 
3
 
project(hello_world.js)
 
3
project(hello_world)
4
4
 
5
5
file(GLOB sourceFiles ../../hello_world.cpp)
6
6
 
10
10
        SET(linkFlags "-O2")
11
11
endif()
12
12
 
13
 
add_executable(hello_world.js ${sourceFiles})
14
 
set_target_properties(hello_world.js PROPERTIES LINK_FLAGS "${linkFlags}")
 
13
SET(CMAKE_EXECUTABLE_SUFFIX ".js")
 
14
 
 
15
if (WIN32)
 
16
        message(FATAL_ERROR "WIN32 should not be defined when cross-compiling!")
 
17
endif()
 
18
 
 
19
if (APPLE)
 
20
        message(FATAL_ERROR "APPLE should not be defined when cross-compiling!")
 
21
endif()
 
22
 
 
23
if (NOT EMSCRIPTEN)
 
24
        message(FATAL_ERROR "EMSCRIPTEN should be defined when cross-compiling!")
 
25
endif()
 
26
 
 
27
if (NOT CMAKE_C_SIZEOF_DATA_PTR)
 
28
        message(FATAL_ERROR "CMAKE_C_SIZEOF_DATA_PTR was not defined!")
 
29
endif()
 
30
 
 
31
add_executable(hello_world ${sourceFiles})
 
32
set_target_properties(hello_world PROPERTIES LINK_FLAGS "${linkFlags}")