summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-21 16:05:55 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-21 16:05:55 +0200
commit5c2347eb55eb0b6d661a3efddc5e3aff93dd6c2e (patch)
tree6f61427dc5fc6879638575109d1e06ebadb60451 /src
downloadedoors-5c2347eb55eb0b6d661a3efddc5e3aff93dd6c2e.zip
edoors-5c2347eb55eb0b6d661a3efddc5e3aff93dd6c2e.tar.gz
initial commit: project tree and cmake scripts
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt1
-rw-r--r--src/lib/CMakeLists.txt22
2 files changed, 23 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644
index 0000000..3ea7a41
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory(lib)
diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt
new file mode 100644
index 0000000..cf5d693
--- /dev/null
+++ b/src/lib/CMakeLists.txt
@@ -0,0 +1,22 @@
+LIST(APPEND EIOTAS_CC_SOURCES
+ eiotas_main.c
+ eiotas_iota.c
+ eiotas_spin.c
+ eiotas_room.c
+ eiotas_door.c
+ eiotas_board.c
+ )
+
+include_directories(
+ ${EINA_INCLUDE_DIRS}
+ ${PROJECT_SOURCE_DIR}/src/include
+ )
+
+add_library(eiotas SHARED ${EIOTAS_CC_SOURCES})
+target_link_libraries(eiotas
+ ${EINA_LIBRARIES}
+ )
+
+set_target_properties(eiotas PROPERTIES
+ VERSION ${EIOTAS_VERSION} SOVERSION ${EIOTAS_VERSION_MAJOR})
+set_target_properties(eiotas PROPERTIES OUTPUT_NAME "eiotas")