Last active
October 12, 2015 06:28
-
-
Save nicolamontecchio/3984652 to your computer and use it in GitHub Desktop.
cmake template, for c++11
This file contains hidden or 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 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