Skip to content

Instantly share code, notes, and snippets.

@madduci
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madduci/d5c0dc539acf5bf3fbc4 to your computer and use it in GitHub Desktop.
Save madduci/d5c0dc539acf5bf3fbc4 to your computer and use it in GitHub Desktop.
Modern C++ - main CMakeLists.txt
cmake_minimum_required(VERSION 2.8.11)
#-----------------------------
# Project Settings
#-----------------------------
SET(PROJECTNAME "ModernCpp")
PROJECT(${PROJECTNAME} CXX)
SET( ${PROJECT_NAME}_MAJOR_VERSION 0 )
SET( ${PROJECT_NAME}_MINOR_VERSION 1 )
SET( ${PROJECT_NAME}_PATCH_LEVEL 0 )
SET( ${PROJECT_NAME}_VERSION_STRING
${${PROJECT_NAME}_MAJOR_VERSION}.${${PROJECT_NAME}_MINOR_VERSION}.${${PROJECT_NAME}_PATCH_LEVEL})
#General CMake/Project Settings
INCLUDE(${CMAKE_SOURCE_DIR}/CMakeModules/project_props.cmake)
#-----------------------------
# Subproject Includes
#-----------------------------
SET(PROJECT_PREFIX_NAME "modcpp")
ADD_SUBDIRECTORY(Modules)
ADD_SUBDIRECTORY(Applications)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment