2015-11-24 06:34:49 +03:00
|
|
|
CMAKE_MINIMUM_REQUIRED (VERSION 2.6)
|
|
|
|
PROJECT (libNativePath)
|
|
|
|
|
|
|
|
FIND_PATH(NP_INCLUDE_DIR NAMES NativeMath.h
|
|
|
|
PATHS
|
|
|
|
${PROJECT_SOURCE_DIR}/NativePath/
|
|
|
|
)
|
|
|
|
|
2016-05-07 10:51:34 +03:00
|
|
|
INCLUDE_DIRECTORIES(${NP_INCLUDE_DIR} ${NP_INCLUDE_DIR}/../source)
|
2015-11-24 06:34:49 +03:00
|
|
|
|
|
|
|
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
|
2016-05-07 10:51:34 +03:00
|
|
|
source/NativeMemory.c
|
|
|
|
source/NativeTime.cpp
|
|
|
|
source/NativeDynamicLinking.c
|
|
|
|
source/stdlib.c
|
|
|
|
source/stdio.c
|
2016-05-14 13:52:31 +03:00
|
|
|
source/NEONvsSSE.c
|
2016-06-21 06:57:56 +03:00
|
|
|
source/NativeThreading.cpp
|
2016-06-21 15:12:53 +03:00
|
|
|
source/workarounds.c
|
2015-11-24 06:34:49 +03:00
|
|
|
)
|