aboutsummaryrefslogtreecommitdiff
path: root/libmpio
diff options
context:
space:
mode:
Diffstat (limited to 'libmpio')
-rw-r--r--libmpio/CMakeLists.txt10
-rw-r--r--libmpio/src/CMakeLists.txt9
2 files changed, 10 insertions, 9 deletions
diff --git a/libmpio/CMakeLists.txt b/libmpio/CMakeLists.txt
index ce48530..fb590ef 100644
--- a/libmpio/CMakeLists.txt
+++ b/libmpio/CMakeLists.txt
@@ -3,12 +3,4 @@ cmake_minimum_required (VERSION 2.4)
set (PACKAGE libmpio)
project (${PACKAGE} C)
-set (CMAKE_C_FLAGS -Wall)
-
-include_directories (${CMAKE_CURRENT_SOURCE_DIR}
- ${CMAKE_CURRENT_SOURCE_DIR}/mplib)
-
-add_library (mpio STATIC src/mpio.c src/io.c src/debug.c src/smartmedia.c
- src/mmc.c src/directory.c src/fat.c src/ecc.c src/cis.c)
-
-target_link_libraries (mpio -lusb)
+add_subdirectory (src)
diff --git a/libmpio/src/CMakeLists.txt b/libmpio/src/CMakeLists.txt
new file mode 100644
index 0000000..0422cb7
--- /dev/null
+++ b/libmpio/src/CMakeLists.txt
@@ -0,0 +1,9 @@
+set (CMAKE_C_FLAGS -Wall)
+
+include_directories (${CMAKE_CURRENT_SOURCE_DIR}/../)
+
+add_library (mpio STATIC mpio.c io.c debug.c smartmedia.c mmc.c directory.c
+ fat.c ecc.c cis.c)
+
+target_link_libraries (mpio -lusb)
+