You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
490 B
CMake
28 lines
490 B
CMake
PROJECT(nvmath)
|
|
|
|
SET(MATH_SRCS
|
|
nvmath.h
|
|
Vector.h
|
|
Matrix.h
|
|
Box.h
|
|
Color.h
|
|
Eigen.h Eigen.cpp
|
|
Fitting.h Fitting.cpp
|
|
Montecarlo.h Montecarlo.cpp
|
|
Random.h Random.cpp
|
|
SphericalHarmonic.h SphericalHarmonic.cpp)
|
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
# targets
|
|
ADD_DEFINITIONS(-DNVMATH_EXPORTS)
|
|
|
|
IF(NVMATH_SHARED)
|
|
ADD_LIBRARY(nvmath SHARED ${MATH_SRCS})
|
|
ELSE(NVMATH_SHARED)
|
|
ADD_LIBRARY(nvmath ${MATH_SRCS})
|
|
ENDIF(NVMATH_SHARED)
|
|
|
|
TARGET_LINK_LIBRARIES(nvmath ${LIBS} nvcore)
|
|
|