mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-23 00:24:11 -08:00
22 lines
648 B
CMake
22 lines
648 B
CMake
cmake_minimum_required(VERSION 3.9)
|
|
project(teavm_benchmark C)
|
|
|
|
set(CMAKE_C_STANDARD 11)
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/target/)
|
|
|
|
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")
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
pkg_check_modules(GTK3 REQUIRED gtk+-3.0)
|
|
|
|
include_directories(${GTK3_INCLUDE_DIRS})
|
|
link_directories(${GTK3_LIBRARY_DIRS})
|
|
add_definitions(${GTK3_CFLAGS_OTHER})
|
|
add_executable(teavm_benchmark target/generated/c/all.c)
|
|
|
|
target_link_libraries(teavm_benchmark ${GTK3_LIBRARIES} m rt) |