mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
16 lines
419 B
CMake
16 lines
419 B
CMake
|
cmake_minimum_required(VERSION 3.9)
|
||
|
project(calc_pi C)
|
||
|
|
||
|
set(CMAKE_C_STANDARD 11)
|
||
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/build/dist)
|
||
|
|
||
|
if(NOT CMAKE_BUILD_TYPE)
|
||
|
set(CMAKE_BUILD_TYPE Release)
|
||
|
endif()
|
||
|
|
||
|
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g")
|
||
|
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O3")
|
||
|
|
||
|
add_executable(calc_pi build/generated/teavm/c/all.c)
|
||
|
|
||
|
target_link_libraries(calc_pi m rt)
|