Adding nlohmanns json library
This commit is contained in:
+8
-4
@@ -1,6 +1,6 @@
|
||||
cmake_minimum_required(VERSION 3.15)
|
||||
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED 20)
|
||||
|
||||
# Handle superbuild first
|
||||
option (USE_SUPERBUILD "Whether or not a superbuild should be invoked" ON)
|
||||
@@ -11,6 +11,7 @@ set(SLANG_ROOT ${EXTERNAL_ROOT}/slang)
|
||||
set(BOOST_ROOT ${EXTERNAL_ROOT}/boost)
|
||||
set(GLM_ROOT ${EXTERNAL_ROOT}/glm)
|
||||
set(GLFW_ROOT ${EXTERNAL_ROOT}/glfw)
|
||||
set(JSON_ROOT ${EXTERNAL_ROOT}/json)
|
||||
set(CMAKE_BINARY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/bin/${CMAKE_BUILD_TYPE})
|
||||
set(RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
||||
set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR})
|
||||
@@ -34,9 +35,11 @@ else()
|
||||
project (Seele)
|
||||
endif()
|
||||
|
||||
add_subdirectory(${GLFW_ROOT})
|
||||
find_package(Vulkan REQUIRED)
|
||||
find_package(Boost REQUIRED COMPONENTS serialization)
|
||||
find_package(Threads)
|
||||
include(${JSON_IMPORT})
|
||||
include(${GLFW_IMPORT})
|
||||
|
||||
include_directories(${GLFW_ROOT}/include)
|
||||
include_directories(${GLM_INCLUDE_DIRS})
|
||||
@@ -52,11 +55,12 @@ if(WIN32)
|
||||
add_compile_definitions(USE_EXTENSIONS)
|
||||
endif()
|
||||
add_executable(SeeleEngine "")
|
||||
add_subdirectory(src/)
|
||||
target_link_libraries(SeeleEngine glfw)
|
||||
target_link_libraries(SeeleEngine nlohmann_json::nlohmann_json)
|
||||
target_link_libraries(SeeleEngine ${Boost_LIBRARIES})
|
||||
target_link_libraries(SeeleEngine ${Vulkan_LIBRARY})
|
||||
target_link_libraries(SeeleEngine glfw ${GLFW_LIBRARIES})
|
||||
target_link_libraries(SeeleEngine ${SLANG_LIBRARY})
|
||||
add_subdirectory(src/)
|
||||
|
||||
if(MSVC)
|
||||
target_compile_options(SeeleEngine PRIVATE /DEBUG:FASTLINK /Zi /W4)
|
||||
|
||||
Reference in New Issue
Block a user