File: CMakeLists.txt

package info (click to toggle)
emscripten 2.0.12~dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 108,440 kB
  • sloc: ansic: 510,324; cpp: 384,763; javascript: 84,341; python: 51,362; sh: 50,019; pascal: 4,159; makefile: 3,409; asm: 2,150; lisp: 1,869; ruby: 488; cs: 142
file content (9 lines) | stat: -rw-r--r-- 283 bytes parent folder | download
1
2
3
4
5
6
7
8
9
cmake_minimum_required(VERSION 2.8)

project(cpp_library)

SET(CPP_LIBRARY_TYPE "SHARED" CACHE STRING "Library type to build")
SET_PROPERTY(CACHE CPP_LIBRARY_TYPE PROPERTY STRINGS STATIC SHARED)

add_library( cpp_lib ${CPP_LIBRARY_TYPE} lib.cpp)
em_link_js_library(cpp_lib "lib.js")