зеркало из https://github.com/stride3d/NativePath.git
29 строки
626 B
CMake
29 строки
626 B
CMake
CMAKE_MINIMUM_REQUIRED (VERSION 2.6)
|
|
PROJECT (libNativePath)
|
|
|
|
FIND_PATH(NP_INCLUDE_DIR NAMES NativeMath.h
|
|
PATHS
|
|
${PROJECT_SOURCE_DIR}/NativePath/
|
|
)
|
|
|
|
INCLUDE_DIRECTORIES(${NP_INCLUDE_DIR} ${NP_INCLUDE_DIR}/../source)
|
|
|
|
IF(${CMAKE_GENERATOR} MATCHES "Unix Makefiles")
|
|
SET(NP_LIB_DIR ${NP_INCLUDE_DIR}/..)
|
|
SET(NP_LIB NativePath)
|
|
ELSE()
|
|
SET(NP_LIB_DIR ${NP_INCLUDE_DIR}/..)
|
|
SET(NP_LIB libNativePath)
|
|
ENDIF()
|
|
|
|
ADD_LIBRARY(${NP_LIB} STATIC
|
|
source/NativeMemory.c
|
|
source/NativeTime.cpp
|
|
source/NativeDynamicLinking.c
|
|
source/stdlib.c
|
|
source/stdio.c
|
|
source/NEONvsSSE.c
|
|
source/NativeThreading.cpp
|
|
source/workarounds.c
|
|
)
|