Improved CMake generator (#4365)
This commit is contained in:
parent
d0b095ad51
commit
26d0605121
1
.gitignore
vendored
1
.gitignore
vendored
@ -71,7 +71,6 @@ Makefile
|
||||
*.d
|
||||
*.so
|
||||
tests/*/*-exe
|
||||
BuildInfo.h
|
||||
CMakeCache.txt
|
||||
CMakeFiles
|
||||
Makefile
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include "../BlockEntities/MobHeadEntity.h"
|
||||
#include "../BlockEntities/FlowerPotEntity.h"
|
||||
#include "../BoundingBox.h"
|
||||
#include "../BuildInfo.h"
|
||||
#include "BuildInfo.h"
|
||||
#include "../ClientHandle.h"
|
||||
#include "../CommandOutput.h"
|
||||
#include "../CompositeChat.h"
|
||||
|
@ -88,7 +88,6 @@ SET (HDRS
|
||||
BlockTypeRegistry.h
|
||||
BrewingRecipes.h
|
||||
BoundingBox.h
|
||||
BuildInfo.h
|
||||
BuildInfo.h.cmake
|
||||
ByteBuffer.h
|
||||
ChatColor.h
|
||||
@ -169,7 +168,7 @@ include_directories ("${CMAKE_CURRENT_SOURCE_DIR}/../lib/sqlite")
|
||||
include_directories ("${CMAKE_CURRENT_SOURCE_DIR}/../lib/SQLiteCpp/include")
|
||||
include_directories (SYSTEM "${CMAKE_CURRENT_SOURCE_DIR}/../lib/TCLAP/include")
|
||||
|
||||
configure_file("BuildInfo.h.cmake" "${CMAKE_CURRENT_SOURCE_DIR}/BuildInfo.h")
|
||||
configure_file("BuildInfo.h.cmake" "${CMAKE_BINARY_DIR}/include/BuildInfo.h")
|
||||
|
||||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||
set_source_files_properties(BlockID.cpp PROPERTIES COMPILE_FLAGS "-Wno-error=global-constructors")
|
||||
@ -368,3 +367,9 @@ target_link_libraries(${CMAKE_PROJECT_NAME} luaexpat jsoncpp_lib_static mbedtls
|
||||
|
||||
# Create a folder for Bindings' documentation:
|
||||
FILE(MAKE_DIRECTORY "Bindings/docs")
|
||||
|
||||
|
||||
# For MSVC, set the startup project to Cuberite:
|
||||
if (MSVC)
|
||||
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT ${CMAKE_PROJECT_NAME})
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user