All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cpp.CMakeLists.txt Maven / Gradle / Ivy

Go to download

JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.

There is a newer version: 0.6.8
Show newest version
cmake_minimum_required(VERSION 3.1)

set (CMAKE_CXX_STANDARD 11)
#add_compile_options(-std=c++11)

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})

{% for item in CMAKE %}
{{ item }}
{% end %}

project (program)

{% for item in CMAKE_PROJECT %}
{{ item }}
{% end %}

{% for folder in CPP_INCLUDE_FOLDERS %}
include_directories({{ folder|escape }})
{% end %}

{% for folder in CPP_LIB_FOLDERS %}
link_directories({{ folder|escape }})
{% end %}

{% for define in CPP_DEFINES %}
add_definitions(-D{{ define }})
{% end %}

add_executable(program program.cpp)

{% for lib in CPP_LIBS %}
target_link_libraries(program {{ lib }})
{% end %}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy