Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
libgrandmaze/CMakeLists.txt
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
22 lines (16 sloc)
568 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include(GenerateExportHeader) | |
cmake_minimum_required(VERSION 2.8) | |
project(grandmaze) | |
set(PROJECT_BINARY_DIR "bin") | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11") | |
set(CMAKE_INSTALL_PREFIX "/usr") | |
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) | |
file(GLOB headers "lib/*.hpp") | |
file(GLOB sources "lib/*.cpp") | |
add_library(grandmaze SHARED ${sources} ${headers}) | |
target_link_libraries(grandmaze ncurses sqlite3) | |
install(TARGETS grandmaze | |
LIBRARY DESTINATION "lib") | |
install(FILES | |
${headers} | |
DESTINATION "include/libgrandmaze") |