reorganize packaging system
This commit is contained in:
		
							
								
								
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -1,2 +1,3 @@
 | 
			
		||||
.idea
 | 
			
		||||
cmake-build-debug
 | 
			
		||||
cmake-build-debug
 | 
			
		||||
bin/*
 | 
			
		||||
							
								
								
									
										6
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
[submodule "lib/dolphin"]
 | 
			
		||||
	path = lib/dolphin
 | 
			
		||||
	url = https://github.com/dolphin-emu/dolphin.git
 | 
			
		||||
[submodule "lib/wiimms-iso-tools"]
 | 
			
		||||
	path = lib/wiimms-iso-tools
 | 
			
		||||
	url = https://github.com/Wiimm/wiimms-iso-tools.git
 | 
			
		||||
@@ -1,31 +0,0 @@
 | 
			
		||||
cmake_minimum_required(VERSION 3.13)
 | 
			
		||||
project(rvz-convert)
 | 
			
		||||
add_library(Options STATIC src/options.cpp)
 | 
			
		||||
target_include_directories(Options PUBLIC ${CMAKE_SOURCE_DIR}/src)
 | 
			
		||||
add_executable(Main src/main.cpp)
 | 
			
		||||
find_program(MAKE NAMES make)
 | 
			
		||||
 | 
			
		||||
include(ExternalProject)
 | 
			
		||||
 | 
			
		||||
externalproject_add(Dolphin
 | 
			
		||||
    GIT_REPOSITORY https://github.com/dolphin-emu/dolphin.git
 | 
			
		||||
    GIT_SUBMODULES
 | 
			
		||||
    GIT_TAG 2412
 | 
			
		||||
    PREFIX dolphin
 | 
			
		||||
    BUILD_COMMAND ${CMAKE_COMMAND} --build . --target dolphin-tool -j8
 | 
			
		||||
    UPDATE_COMMAND ""
 | 
			
		||||
    INSTALL_COMMAND ""
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
externalproject_add(WIT
 | 
			
		||||
    GIT_REPOSITORY https://github.com/Wiimm/wiimms-iso-tools.git
 | 
			
		||||
    GIT_SUBMODULES
 | 
			
		||||
    CONFIGURE_COMMAND ""
 | 
			
		||||
    BUILD_IN_SOURCE TRUE
 | 
			
		||||
    BUILD_COMMAND ${MAKE} -C project
 | 
			
		||||
    PREFIX wit
 | 
			
		||||
    UPDATE_COMMAND ""
 | 
			
		||||
    INSTALL_COMMAND ""
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
target_link_libraries(Main Options)
 | 
			
		||||
							
								
								
									
										4
									
								
								Makefile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								Makefile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
all: src/main.cpp src/options.cpp submodules
 | 
			
		||||
	cc -Wall -O src/main.cpp src/options.cpp -o bin/rvz-convert -lstdc++
 | 
			
		||||
 | 
			
		||||
submodules:
 | 
			
		||||
							
								
								
									
										1
									
								
								lib/dolphin
									
									
									
									
									
										Submodule
									
								
							
							
								
								
								
								
								
							
						
						
									
										1
									
								
								lib/dolphin
									
									
									
									
									
										Submodule
									
								
							 Submodule lib/dolphin added at 510a688a2a
									
								
							
							
								
								
									
										1
									
								
								lib/wiimms-iso-tools
									
									
									
									
									
										Submodule
									
								
							
							
								
								
								
								
								
							
						
						
									
										1
									
								
								lib/wiimms-iso-tools
									
									
									
									
									
										Submodule
									
								
							 Submodule lib/wiimms-iso-tools added at fc1c0b840c
									
								
							
		Reference in New Issue
	
	Block a user