# The name of our project is "GRAY". CMakeLists files in this project can # refer to the root source directory of the project as ${GRAY_SOURCE_DIR} and # to the root binary directory of the project as ${GRAY_BINARY_DIR}. cmake_minimum_required (VERSION 2.6 FATAL_ERROR) if(DEFINED CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE} CACHE STRING "Choose build type") else(DEFINED CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "Choose build type") endif(DEFINED CMAKE_BUILD_TYPE) project (PLY) include_directories(.) add_library(ply SHARED plyfile.c) add_executable(plytest plyfile.c plytest.c)