瀏覽代碼

Merge branch 'master' of https://github.com/albertodemichelis/squirrel

albertodemichelis 3 年之前
父節點
當前提交
d3294338d1
共有 1 個文件被更改,包括 11 次插入3 次删除
  1. 11 3
      CMakeLists.txt

+ 11 - 3
CMakeLists.txt

@@ -35,15 +35,23 @@ endif()
 
 
 add_subdirectory(squirrel)
 add_subdirectory(squirrel)
 add_subdirectory(sqstdlib)
 add_subdirectory(sqstdlib)
-add_subdirectory(sq)
+if(NOT SQ_DISABLE_INTERPRETER)
+  add_subdirectory(sq)
+endif()
 
 
 if(CMAKE_SIZEOF_VOID_P EQUAL 8)
 if(CMAKE_SIZEOF_VOID_P EQUAL 8)
   set(tgts)
   set(tgts)
   if(NOT DISABLE_DYNAMIC)
   if(NOT DISABLE_DYNAMIC)
-    list(APPEND tgts squirrel sqstdlib sq)
+    list(APPEND tgts squirrel sqstdlib)
+    if(NOT SQ_DISABLE_INTERPRETER)
+      list(APPEND tgts sq)
+    endif()
   endif()
   endif()
   if(NOT DISABLE_STATIC)
   if(NOT DISABLE_STATIC)
-    list(APPEND tgts squirrel_static sqstdlib_static sq_static)
+    list(APPEND tgts squirrel_static sqstdlib_static)
+    if(NOT SQ_DISABLE_INTERPRETER)
+      list(APPEND tgts sq_static)
+    endif()
   endif()
   endif()
   foreach(t ${tgts})
   foreach(t ${tgts})
     target_compile_definitions(${t} PUBLIC -D_SQ64)
     target_compile_definitions(${t} PUBLIC -D_SQ64)