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
#include <iostream> | |
#include <boost/program_options.hpp> | |
// コンパイル時に-lprogram_optionsを指定 | |
namespace po = boost::program_options; | |
/** | |
* main function | |
*/ | |
int main(int argc, char** argv) { |
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
#define print(var) {std::cout<<#var"= "<<std::endl<<(var)<<std::endl} |
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
#include <iostream> | |
using namespace std; | |
int main(){ | |
cout << __FUNCTION__ << endl; | |
cout << __FILE__ << ":" << __LINE__ << endl; | |
return 0; | |
} |
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
find_package(Boost COMPONENTS program_options thread REQUIRED) | |
if(Boost_FOUND) | |
message("Boost is found:") | |
message(" Boost_INCLUDE_DIRS= ${Boost_INCLUDE_DIRS}") | |
message(" Boost_LIBRARIES= ${Boost_LIBRARIES}") | |
message(" Boost_LIBRARY_DIRS= ${Boost_LIBRARY_DIRS}") | |
include_directories(${Boost_INCLUDE_DIRS}) | |
add_definitions("-DHAS_BOOST") | |
endif() |
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
rem 1:検索ワード 2:フルパス 3:ファイル名 | |
set SAVEDIR=D:\\users\\%USERNAME%\\Videos\\PT3\\%~1 | |
set REC=%~2 | |
set FILENAME=%~3 | |
mkdir "%SAVEDIR%" | |
move "%REC%" "%SAVEDIR%\\%FILENAME%" |
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 2.8) | |
project(bullet-sample) | |
include(FindPkgConfig) | |
pkg_check_modules(Bullet REQUIRED bullet) | |
if(Bullet_FOUND) | |
message("bullet is found:") | |
message(" Bullet_INCLUDE_DIRS= ${Bullet_INCLUDE_DIRS}") | |
message(" Bullet_LIBRARIES= ${Bullet_LIBRARIES}") |
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 2.8) | |
project(pkg) | |
include(FindPkgConfig) | |
pkg_check_modules(<PREFIX> REQUIRED <lib_name>) | |
if(<PREFIX>_FOUND) | |
message(STATUS "<PREFIX> is found:") | |
message(STATUS " <PREFIX>_INCLUDE_DIRS= ${<PREFIX>_INCLUDE_DIRS}") | |
message(STATUS " <PREFIX>_LIBRARIES= ${<PREFIX>_LIBRARIES}") |
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
require 'formula' | |
class NoExpatFramework < Requirement | |
def message; <<-EOS.undent | |
Detected /Library/Frameworks/expat.framework | |
This will be picked up by CMake's build system and likely cause the | |
build to fail, trying to link to a 32-bit version of expat. | |
You may need to move this file out of the way to compile CMake. |
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
#please replace @prefix@ to ode-prefix(pkg-config ode --variable=prefix) | |
prefix=@prefix@ | |
exec_prefix=${prefix} | |
libdir=${exec_prefix}/lib | |
includedir=${prefix}/include | |
Name: drawstuff | |
Description: Drawstuff | |
Version: 0.12 | |
Libs: -L${libdir} -ldrawstuff -framework GLUT -framework OpenGL |
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
require 'formula' | |
class Ode < Formula | |
homepage 'http://www.ode.org/' | |
url 'http://sourceforge.net/projects/opende/files/ODE/0.12/ode-0.12.tar.bz2' | |
sha1 '10e7aae6cc6b1afe523ed52e76afd5e06461ea93' | |
head 'http://opende.svn.sourceforge.net/svnroot/opende/trunk' | |
depends_on 'pkg-config' => :build | |
depends_on 'gnu-sed' => :build |
OlderNewer