Skip to content

Commit

Permalink
Fixed CMakeLists.txt. Should fix #22 and #14
Browse files Browse the repository at this point in the history
  • Loading branch information
ClemensElflein committed Nov 28, 2021
1 parent 7312ead commit 514ec38
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,4 @@ add_custom_target(WITH_APP /bin/sh ${CMAKE_CURRENT_SOURCE_DIR}/deploy_app.sh ${C
add_custom_target(PACK /bin/sh ${CMAKE_CURRENT_SOURCE_DIR}/pack.sh ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})

add_dependencies(PACK self_o_mat.app)
add_dependencies(self_o_mat.app WITH_APP)
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,16 @@ cmake ..
make
```

4. Edit settings.json to match your setup
4. Tell your system which type of self-o-mat you are running. For development config use 'dev' by running:
``sudo bash -c 'echo "dev" > /opt/.selfomat.type'``

5. Run self-o-mat
5. Edit settings/dev.json to match your setup. It should work with an Arduino Nano by default.

6. Run the self-o-mat photo-booth software:
```
#setup your installation
cd <source dir>
build/self_o_mat
cd <source dir>/build
./self_o_mat.app
```

# Now what?
Expand Down
2 changes: 1 addition & 1 deletion settings/dev.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"camera_type": "gphoto",
"has_flash": false,
"has_button": false,
"has_button": true,
"disable_watchdog": false,
"debug": false,
"button_port_name": "/dev/ttyUSB",
Expand Down

0 comments on commit 514ec38

Please sign in to comment.