Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
27 lines
576 B
CMake
27 lines
576 B
CMake
cmake_minimum_required(VERSION 3.10.0)
|
|
project(StormEngine VERSION 0.1.0 LANGUAGES C)
|
|
|
|
# Find sources
|
|
file(GLOB_RECURSE SOURCES src/fluid/src/**.c)
|
|
|
|
#include header files
|
|
include_directories(src/fluid/includes)
|
|
|
|
#include jni
|
|
find_package(JNI REQUIRED)
|
|
include_directories(${JNI_INCLUDE_DIRS})
|
|
|
|
#include architecture flags
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m64 -mavx -mavx2")
|
|
|
|
#emit to shared-folder
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/shared-folder)
|
|
|
|
#Create shared library
|
|
add_library(StormEngine SHARED ${SOURCES})
|
|
|
|
|
|
include(CTest)
|
|
enable_testing()
|
|
|