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) set(SOURCE_SYSTEM ${SOURCE_ROOT}/System)
# Compiler warning and optimization flags # 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) if (EMSCRIPTEN)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-warn-absolute-paths") 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: theme:
name: 'material' name: 'material'
logo: logo: 'images/bento4-small.jpg'
icon: "\uE80D"
custom_dir: 'theme' custom_dir: 'theme'
docs_dir: 'src' 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 can generate Makefiles, Xcode project files, or Visual Studios project files.
#### CMake/Make #### CMake/Make
mkdir cmakebuild mkdir cmakebuild
cd cmakebuild cd cmakebuild
cmake -DCMAKE_BUILD_TYPE=Release .. cmake -DCMAKE_BUILD_TYPE=Release ..
make make
#### CMake/Xcode #### CMake/Xcode
mkdir cmakebuild mkdir cmakebuild
cd cmakebuild cd cmakebuild
cmake -G Xcode -DCMAKE_BUILD_TYPE=Release .. cmake -G Xcode
cmake --build . --config Release
#### CMake/Visual Studio #### CMake/Visual Studio
mkdir cmakebuild mkdir cmakebuild
cd 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 #### CMake for Android NDK
mkdir cmakebuild mkdir cmakebuild

Binary file not shown.