88fc5ca18e
Eliminate files that are not needed for NVTT.
36 lines
1.0 KiB
CMake
36 lines
1.0 KiB
CMake
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)
|
|
PROJECT(NV)
|
|
|
|
SET(NV_CMAKE_DIR "${NV_SOURCE_DIR}/cmake")
|
|
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${NV_CMAKE_DIR}")
|
|
|
|
IF(WIN32)
|
|
# gnuwin32 paths:
|
|
SET(GNUWIN32_PATH "${NV_SOURCE_DIR}/extern/gnuwin")
|
|
SET(CMAKE_INCLUDE_PATH "${GNUWIN32_PATH}/include")
|
|
IF (NV_SYSTEM_PROCESSOR STREQUAL "AMD64")
|
|
SET(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} "${GNUWIN32_PATH}/lib/win64")
|
|
ELSE(NV_SYSTEM_PROCESSOR STREQUAL "AMD64")
|
|
SET(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} "${GNUWIN32_PATH}/lib/win32")
|
|
ENDIF(NV_SYSTEM_PROCESSOR STREQUAL "AMD64")
|
|
|
|
# Set GLUT path:
|
|
SET(GLUT_ROOT_PATH "${NV_SOURCE_DIR}/extern/glut")
|
|
|
|
ENDIF(WIN32)
|
|
|
|
INCLUDE(${NV_CMAKE_DIR}/OptimalOptions.cmake)
|
|
MESSAGE(STATUS "Setting optimal options")
|
|
MESSAGE(STATUS " Processor: ${NV_SYSTEM_PROCESSOR}")
|
|
MESSAGE(STATUS " Compiler Flags: ${CMAKE_CXX_FLAGS}")
|
|
|
|
IF(NVTT_SHARED)
|
|
SET(NVCORE_SHARED TRUE)
|
|
SET(NVMATH_SHARED TRUE)
|
|
SET(NVIMAGE_SHARED TRUE)
|
|
ENDIF(NVTT_SHARED)
|
|
|
|
ADD_SUBDIRECTORY(extern)
|
|
|
|
ADD_SUBDIRECTORY(src)
|