Created
February 18, 2017 21:16
-
-
Save alichay/70496ede7ee4077dc99fa90003dfe128 to your computer and use it in GitHub Desktop.
Simple CMakeLists.txt
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
cmake_minimum_required(VERSION 3.1) | |
project(YOURPROJECTNAME) | |
set(CMAKE_CXX_STANDARD 11) # Use C++11 | |
#FIND_PACKAGE(Boost REQUIRED filesystem) | |
#INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIR}) | |
set(CMAKE_BUILD_TYPE "Debug") | |
file(GLOB_RECURSE SRC_FILES | |
"src/*.h" | |
"src/*.cpp" | |
) | |
set (CMAKE_CXX_STANDARD 11) | |
add_executable(YOURPROJECTNAME ${SRC_FILES}) | |
target_link_libraries(YOURPROJECTNAME) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment