NativePath/CMakeLists.txt

29 строки
626 B
CMake
Исходник Постоянная ссылка Обычный вид История

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/
)
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
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
source/NativeThreading.cpp
2016-06-21 15:12:53 +03:00
source/workarounds.c
2015-11-24 06:34:49 +03:00
)