mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
add cmake for win
This commit is contained in:
parent
fb09382d3e
commit
030c4f2448
15
tools/pikaBitCodeCompiler/.vscode/c_cpp_properties.json
vendored
Normal file
15
tools/pikaBitCodeCompiler/.vscode/c_cpp_properties.json
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Win32",
|
||||
"includePath": ["${workspaceFolder}/**"],
|
||||
"defines": ["_DEBUG", "UNICODE", "_UNICODE"],
|
||||
"compilerPath": "C:\\MinGW\\bin\\gcc.exe",
|
||||
"cStandard": "gnu17",
|
||||
"cppStandard": "gnu++14",
|
||||
"intelliSenseMode": "windows-gcc-x64",
|
||||
"configurationProvider": "ms-vscode.cmake-tools"
|
||||
}
|
||||
],
|
||||
"version": 4
|
||||
}
|
16
tools/pikaBitCodeCompiler/CMakeLists.txt
Normal file
16
tools/pikaBitCodeCompiler/CMakeLists.txt
Normal file
@ -0,0 +1,16 @@
|
||||
cmake_minimum_required(VERSION 3.0.0)
|
||||
project(pikaBitCodeCompiler VERSION 0.1.0)
|
||||
|
||||
include(CTest)
|
||||
enable_testing()
|
||||
|
||||
aux_source_directory(pikascript/pikascript-core pikascript-core)
|
||||
include_directories(pikascript/pikascript-core)
|
||||
|
||||
add_executable(pikaBitCodeCompiler main.c
|
||||
${pikascript-core}
|
||||
)
|
||||
|
||||
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
|
||||
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
|
||||
include(CPack)
|
@ -0,0 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include "PikaObj.h"
|
||||
|
||||
void main(){
|
||||
printf("hello world\r\n");
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user