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
project(btest CXX) | |
cmake_minimum_required(VERSION 2.6) | |
set(Boost_DIR /Boost) | |
set(Boost_USE_STATIC_LIBS ON) | |
set(Boost_USE_MULTITHREADED OFF) | |
find_package(Boost 1.58.0 COMPONENTS system filesystem) | |
if (NOT Boost_FOUND) |
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
cd "\wakita\Dropbox (smartnova)"\%1 |
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
"c:\Program Files (x86)\CMake\bin\cmake.exe" -G"MinGW Makefiles" -H. -B%builddir% |
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 3.1) | |
set(CMAKE_BUILD_TYPE Debug) | |
macro(Generate V1 V2) | |
set(V ${V1}${V2}) | |
ADD_CUSTOM_COMMAND( | |
OUTPUT gl_core${V}.h gl_core${V}.c | |
COMMAND $ENV{LUA_DEV}/lua.exe "$ENV{_PROJECT_ROOT_}/LoadGen.lua" -profile=core -style=pointer_c -spec=gl -version=${V1}.${V2} core${V} | |
) | |
add_library(glcore${V} gl_core${V}.c) |
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
#!/bin/sh | |
if [ "$_system_type" = Darwin ]; then | |
export OSTYPE=Darwin | |
export C_INCLUDE_PATH=/opt/brew/include | |
export CPLUS_INCLUDE_PATH=/opt/brew/include | |
export CMAKE=/opt/brew/bin/cmake | |
export MAKE=/usr/bin/make | |
fi |
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
all: ptime | |
ptime.o: ptime.c | |
ptime: ptime.o | |
clang++ -o $@ $^ | |
clean: | |
rm -f ptime ptime.o |
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
#undef NDEBUG | |
#include <iostream> | |
#include <cassert> | |
using std::cout; | |
using std::endl; | |
// 1:8:23 |
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
#include <QGuiApplication> | |
#include <QQmlApplicationEngine> | |
#include <QtScript> | |
int main(int argc, char *argv[]) { | |
QGuiApplication app(argc, argv); | |
QQmlApplicationEngine appEngine; | |
appEngine.load(QUrl(QStringLiteral("qrc:/main.qml"))); |
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
#include "mainwindow.hxx" | |
#include <QApplication> | |
#include <QSurfaceFormat> | |
#include <QOpenGLContext> | |
#include <iostream> | |
#include <map> | |
extern Ui::MainWindow mainWindow; | |
int main(int argc, char *argv[]) |
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
void GLWidget::initializeGL() { | |
QSurfaceFormat fmt = QOpenGLContext::currentContext()->format(); | |
qWarning("OpenGL %d.%d %s", fmt.version().first, fmt.version().second, profile_str[fmt.profile()].c_str()); | |
initializeOpenGLFunctions(); | |
} |