Skip to content

Instantly share code, notes, and snippets.

@nicolamontecchio
Last active October 12, 2015 06:28
Show Gist options
  • Save nicolamontecchio/3984652 to your computer and use it in GitHub Desktop.
Save nicolamontecchio/3984652 to your computer and use it in GitHub Desktop.
cmake template, for c++11
cmake_minimum_required(VERSION 2.6)
project(ml)
add_library(boost_po STATIC IMPORTED)
set_property(TARGET boost_po PROPERTY
IMPORTED_LOCATION /usr/local/lib/libboost_program_options.a)
set(CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++")
add_executable(nca nca.cpp)
target_link_libraries(nca boost_po)
# OTHER STUFF
set_source_files_properties(weird-code.c
PROPERTIES COMPILE_FLAGS -Wno-funny-opts)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment