1 # The name of our project is "QNQ". CMakeLists file in this project can
2 # refer to the root source directory of the project as ${QNQ_SOURCE_DIR}
3 # and to the root binary directory of the project as ${QNQ_BINARY_DIR}.
5 # Guarantee the version of CMake is 2.6 at least.
6 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
9 #This option used to tell the complier wether to debug it.
11 "Build the project using debugging code"
14 MESSAGE("Adding Debug flag...")
15 ADD_DEFINITIONS(-DDEBUG)
16 SET(CMAKE_BUILD_TYPE Debug)
17 MESSAGE("Build type is " ${CMAKE_BUILD_TYPE})
20 #Distinguish the different system.
22 MESSAGE(STATUS "The current os is M$-Win, a bad os!")
23 ADD_DEFINITIONS(-DWIN32)
25 MESSAGE(STATUS "The current os is *nix")
26 ADD_DEFINITIONS(-DUNIX)
30 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/FreeRecite DESTINATION /usr/share)
36 "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
37 "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
40 ADD_CUSTOM_TARGET(uninstall
41 "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")