mirror of https://github.com/AxioDL/boo.git
Enable C++14
This commit is contained in:
parent
bb419b0bfd
commit
55bf4bbdea
|
@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.0)
|
|||
project(libBoo)
|
||||
|
||||
if (NOT MSVC)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
|
|
|
@ -172,7 +172,7 @@ struct TestApplicationCallback : IApplicationCallback
|
|||
IWindow* mainWindow = NULL;
|
||||
boo::TestDeviceFinder devFinder;
|
||||
CTestWindowCallback windowCallback;
|
||||
void appLaunched(IApplication* app)
|
||||
void appMain(IApplication* app)
|
||||
{
|
||||
mainWindow = app->newWindow(_S("YAY!"));
|
||||
mainWindow->setCallback(&windowCallback);
|
||||
|
@ -210,6 +210,10 @@ int main(int argc, const char** argv)
|
|||
std::unique_ptr<boo::IApplication> app =
|
||||
ApplicationBootstrap(boo::IApplication::PLAT_AUTO,
|
||||
appCb, _S("rwk"), _S("RWK"), argc, argv);
|
||||
while (true)
|
||||
{
|
||||
app->pump();
|
||||
}
|
||||
printf("IM DYING!!\n");
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue