Adding svector
This commit is contained in:
		
					parent
					
						
							
								7ee5899e31
							
						
					
				
			
			
				commit
				
					
						fc37d107e0
					
				
			
		
					 1 changed files with 9 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -35,6 +35,8 @@ else ()
 | 
			
		|||
    message(STATUS "ccache not found")
 | 
			
		||||
endif ()
 | 
			
		||||
 | 
			
		||||
add_subdirectory(external/svector)
 | 
			
		||||
 | 
			
		||||
option(BUILD_SHARED_LIBS "Build shared libraries" OFF)
 | 
			
		||||
option(GLFW_BUILD_EXAMPLES "Build the GLFW example programs" OFF)
 | 
			
		||||
option(GLFW_BUILD_TESTS "Build the GLFW test programs" OFF)
 | 
			
		||||
| 
						 | 
				
			
			@ -104,7 +106,7 @@ add_executable(BillySheet ${SOURCES})
 | 
			
		|||
 | 
			
		||||
target_include_directories(BillySheet PRIVATE include include/imgui external/ImFileDialog)
 | 
			
		||||
 | 
			
		||||
set_target_properties(BillySheet spdlog PROPERTIES
 | 
			
		||||
set_target_properties(BillySheet spdlog svector PROPERTIES
 | 
			
		||||
                      CXX_STANDARD 17
 | 
			
		||||
                      CXX_STANDARD_REQUIRED ON
 | 
			
		||||
                      CXX_EXTENSIONS OFF
 | 
			
		||||
| 
						 | 
				
			
			@ -112,7 +114,7 @@ set_target_properties(BillySheet spdlog PROPERTIES
 | 
			
		|||
                      # UNITY_BUILD ON
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
set_target_properties(spdlog PROPERTIES UNITY_BUILD ON)
 | 
			
		||||
set_target_properties(spdlog svector PROPERTIES UNITY_BUILD ON)
 | 
			
		||||
 | 
			
		||||
set_target_properties(glfw PROPERTIES
 | 
			
		||||
                      C_STANDARD 11
 | 
			
		||||
| 
						 | 
				
			
			@ -130,20 +132,25 @@ target_compile_definitions(BillySheet PRIVATE
 | 
			
		|||
                           $<$<CONFIG:Release>:SPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_ERROR>)
 | 
			
		||||
 | 
			
		||||
target_compile_definitions(spdlog PRIVATE $<$<CONFIG:Debug>:_GLIBCXX_DEBUG>)
 | 
			
		||||
target_compile_definitions(svector INTERFACE $<$<CONFIG:Debug>:_GLIBCXX_DEBUG>)
 | 
			
		||||
target_compile_definitions(glfw PRIVATE $<$<CONFIG:Debug>:_GLIBCXX_DEBUG>)
 | 
			
		||||
 | 
			
		||||
target_compile_options(spdlog PRIVATE ${COMPILE_FLAGS})
 | 
			
		||||
target_compile_options(svector INTERFACE ${COMPILE_FLAGS})
 | 
			
		||||
target_compile_options(glfw PRIVATE ${COMPILE_FLAGS})
 | 
			
		||||
target_compile_options(BillySheet PRIVATE ${COMPILE_FLAGS})
 | 
			
		||||
 | 
			
		||||
target_link_options(spdlog PRIVATE ${LINKER_OPTIONS})
 | 
			
		||||
target_link_options(svector INTERFACE ${LINKER_OPTIONS})
 | 
			
		||||
target_link_options(glfw PRIVATE ${LINKER_OPTIONS})
 | 
			
		||||
target_link_options(BillySheet PRIVATE ${LINKER_OPTIONS})
 | 
			
		||||
 | 
			
		||||
target_link_libraries(spdlog PRIVATE ${LINKER_FLAGS})
 | 
			
		||||
target_link_libraries(svector INTERFACE ${LINKER_FLAGS})
 | 
			
		||||
target_link_libraries(glfw PRIVATE ${LINKER_FLAGS})
 | 
			
		||||
target_link_libraries(BillySheet glfw
 | 
			
		||||
                      spdlog::spdlog_header_only
 | 
			
		||||
                      svector::svector
 | 
			
		||||
                      OpenGL::OpenGL
 | 
			
		||||
                      GLEW::GLEW
 | 
			
		||||
                      nlohmann_json::nlohmann_json
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue