Add config.cmake file

This commit is contained in:
2016-12-23 21:00:42 -06:00
parent c2a3abcbed
commit 7dc22532e8
4 changed files with 13 additions and 7 deletions
+2
View File
@@ -26,4 +26,6 @@ enable_testing()
include_directories("src")
install(FILES config.cmake DESTINATION lib/ox)
add_subdirectory(src)
+7 -5
View File
@@ -1,26 +1,28 @@
all: gba_build native_build native_debug_build windows_release windows_debug
MAKE=make -j
gba_build:
@if [ -d gba ]; then \
make -C gba ${ARGS}; \
${MAKE} -C gba ${ARGS}; \
fi
native_build:
@if [ -d ${TARGET}-release ]; then \
make -C ${TARGET}-release ${ARGS}; \
${MAKE} -C ${TARGET}-release ${ARGS}; \
fi
native_debug_build:
@if [ -d ${TARGET}-debug ]; then \
make -C ${TARGET}-debug ${ARGS}; \
${MAKE} -C ${TARGET}-debug ${ARGS}; \
fi
windows_release:
@if [ -d windows-release ]; then \
make -C windows-release ${ARGS}; \
${MAKE} -C windows-release ${ARGS}; \
fi
windows_debug:
@if [ -d windows-debug ]; then \
make -C windows-debug ${ARGS}; \
${MAKE} -C windows-debug ${ARGS}; \
fi
+2
View File
@@ -0,0 +1,2 @@
set(Ox_INCLUDE_DIRS ${PREFIX}/include/ox)
set(OxFs_LIBRARY ${PREFIX}/lib/ox/libOxFs.a)
+2 -2
View File
@@ -24,8 +24,8 @@ install(
)
install(TARGETS OxFS
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib/ox
ARCHIVE DESTINATION lib/ox
)
if(OX_BUILD_EXEC STREQUAL "ON")