fix CMake build for Windows

This commit is contained in:
Gilles Boccon-Gibod 2020-04-24 15:11:48 -07:00
parent 4dea0ccd4d
commit b004efd53d
4 changed files with 10 additions and 6 deletions

View File

@ -12,7 +12,9 @@ set(SOURCE_METADATA ${SOURCE_ROOT}/MetaData)
set(SOURCE_SYSTEM ${SOURCE_ROOT}/System)
# Compiler warning and optimization flags
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-class-memaccess")
if(CMAKE_C_COMPILER_ID MATCHES "GNU" OR CMAKE_C_COMPILER_ID MATCHES "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-class-memaccess")
endif()
if (EMSCRIPTEN)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-warn-absolute-paths")

View File

@ -9,8 +9,7 @@ copyright: © 2020 Axiomatic Systems, LLC. All rights reserved.
theme:
name: 'material'
logo:
icon: "\uE80D"
logo: 'images/bento4-small.jpg'
custom_dir: 'theme'
docs_dir: 'src'

View File

@ -81,21 +81,24 @@ Open the Visual Studio solution file Build/Targets/x86-microsoft-win32-vs2010/Be
CMake can generate Makefiles, Xcode project files, or Visual Studios project files.
#### CMake/Make
mkdir cmakebuild
cd cmakebuild
cmake -DCMAKE_BUILD_TYPE=Release ..
make
#### CMake/Xcode
mkdir cmakebuild
cd cmakebuild
cmake -G Xcode -DCMAKE_BUILD_TYPE=Release ..
cmake -G Xcode
cmake --build . --config Release
#### CMake/Visual Studio
mkdir cmakebuild
cd cmakebuild
cmake -G "Visual Studio 10 Win64" -DCMAKE_BUILD_TYPE=Release ..
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build . --config Release
#### CMake for Android NDK
mkdir cmakebuild

Binary file not shown.