1 # The name of our project is "FREERECITE". CMakeLists file in this project can
2 # refer to the root source directory of the project as ${FREERECITE_SOURCE_DIR}
3 # and to the root binary directory of the project as ${FREERECITE_BINARY_DIR}.
5 # Guarantee the version of CMake is 2.6 at least.
6 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
10 "Build the project using debugging code"
13 MESSAGE("Adding Debug flag...")
14 ADD_DEFINITIONS(-DDEBUG)
15 SET(CMAKE_BUILD_TYPE Debug)
16 MESSAGE("Build type is " ${CMAKE_BUILD_TYPE})
20 MESSAGE(STATUS "The current os is M$-Win, a bad os!")
21 ADD_DEFINITIONS(-DWIN32)
23 MESSAGE(STATUS "The current os is *nix")
24 ADD_DEFINITIONS(-DUNIX)
28 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/FreeRecite DESTINATION /usr/share)
29 INSTALL(PROGRAMS ${PROJECT_SOURCE_DIR}/FreeRecite/gws DESTINATION /usr/share/FreeRecite)
35 "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
36 "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
39 ADD_CUSTOM_TARGET(uninstall
40 "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")