mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-05 00:38:00 +01:00
13 lines
510 B
CMake
13 lines
510 B
CMake
cmake_minimum_required(VERSION 2.8)
|
|
|
|
project(SuperDerpy)
|
|
|
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -ansi -g")
|
|
SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/modules)
|
|
|
|
add_subdirectory(src)
|
|
install(DIRECTORY data DESTINATION share/superderpy)
|
|
|
|
# uninstall target
|
|
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/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)
|