2007-04-17 08:49:19 +00:00
|
|
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.4.0)
|
|
|
|
PROJECT(NV)
|
|
|
|
ENABLE_TESTING()
|
|
|
|
|
|
|
|
SET(NV_CMAKE_DIR "${NV_SOURCE_DIR}/cmake")
|
|
|
|
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${NV_CMAKE_DIR}")
|
|
|
|
|
|
|
|
IF(WIN32)
|
|
|
|
SET(GNUWIN32 "${NV_SOURCE_DIR}/gnuwin32")
|
|
|
|
SET(CMAKE_INCLUDE_PATH "${GNUWIN32}/include")
|
|
|
|
SET(CMAKE_LIBRARY_PATH "${GNUWIN32}/lib")
|
|
|
|
ENDIF(WIN32)
|
|
|
|
|
2007-08-21 06:32:52 +00:00
|
|
|
INCLUDE(${NV_CMAKE_DIR}/OptimalOptions.cmake)
|
|
|
|
MESSAGE(STATUS "Setting optimal options")
|
|
|
|
MESSAGE(STATUS " Processor: ${NV_SYSTEM_PROCESSOR}")
|
|
|
|
MESSAGE(STATUS " Compiler Flags: ${CMAKE_CXX_FLAGS}")
|
2007-04-17 08:49:19 +00:00
|
|
|
|
|
|
|
ADD_SUBDIRECTORY(src)
|
|
|
|
|
2007-07-01 08:52:38 +00:00
|
|
|
IF(WIN32)
|
|
|
|
ADD_SUBDIRECTORY(gnuwin32)
|
|
|
|
ENDIF(WIN32)
|