Skip to content

Commit

Permalink
added CMake build files
Browse files Browse the repository at this point in the history
  • Loading branch information
CallForSanity committed Aug 23, 2015
1 parent 9d0cee8 commit 1934a14
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
23 changes: 23 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(libcity)

# set cmake module path
SET(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")

set(CMAKE_DEBUG_POSTFIX "_d")

# includes
#INCLUDE(PathHelper)
#INCLUDE(AutoLibDiscovery)
#INCLUDE(CopyInstallDLLs)

# setup CPack
#INCLUDE(InstallRequiredSystemLibraries)
SET(CPACK_PACKAGE_CONTACT "Patrick Charrier <[email protected]>")
SET(CPACK_PACKAGE_DESCRIPTION "libcity")
INCLUDE(CPack)

ADD_SUBDIRECTORY(src)

INSTALL(DIRECTORY "src/." DESTINATION "include/libcity" PATTERN "*.h")
INSTALL(FILES libcity.h DESTINATION "include")
3 changes: 3 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FILE(GLOB_RECURSE src "*.cpp" "*.h")
ADD_LIBRARY(libcity ${src})
INSTALL(TARGETS libcity DESTINATION lib)

0 comments on commit 1934a14

Please sign in to comment.