small reorganization of cmake file structure

This commit is contained in:
Sebastian Krzyszkowiak 2012-08-20 02:56:03 +02:00
parent 8d99205e50
commit 2ca890361a
10 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8)
project(SuperDerpy C) project(SuperDerpy C)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -ansi -g") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -ansi -g")
SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/modules) SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
if(MINGW) if(MINGW)
# Guess MINGDIR from the value of CMAKE_C_COMPILER if it's not set. # Guess MINGDIR from the value of CMAKE_C_COMPILER if it's not set.
@ -26,5 +26,5 @@ add_subdirectory(src)
install(DIRECTORY data DESTINATION share/superderpy) install(DIRECTORY data DESTINATION share/superderpy)
# uninstall target # uninstall target
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" IMMEDIATE @ONLY) configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" IMMEDIATE @ONLY)
add_custom_target(uninstall COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake) add_custom_target(uninstall COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)