Skip to content

Commit

Permalink
CMake: fix semantic merge errors due to rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Helco committed Nov 23, 2018
1 parent dcbcba8 commit 70472e1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ As such a typical CMake call on Windows to develop this project looks like this:
cmake -DSDL2_PATH="C:/libs/SDL2-2.0.5/" -T llvm ..
```

You might have to copy your `SDL.dll` in the `build/Debug` or `build/Release` directory to start pcmockup.
You might have to copy your `SDL.dll` in the `build/pcmockup/Debug` or `build/pcmockup/Release` directory to start pcmockup.

### With make/gcc

Expand Down
3 changes: 3 additions & 0 deletions pcmockup/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ target_link_libraries(pcmockup
${STB_LIBRARY}
podrenderer
)
target_include_directories(pcmockup
PRIVATE ${SDL2_INCLUDE_DIR}
)
enable_warnings(pcmockup)
7 changes: 4 additions & 3 deletions renderer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ set(sources_podrenderer
assign_source_group(${sources_podrenderer})

add_library(podrenderer ${sources_podrenderer})
target_include_directories(podrenderer PUBLIC
"../pcmockup/" # to access pebble.h
${SDL2_INCLUDE_DIR} # for debug output
target_include_directories(podrenderer
INTERFACE "."
PRIVATE "../pcmockup/" # to access pebble.h
PRIVATE ${SDL2_INCLUDE_DIR} # for debug output
)
target_compile_definitions(podrenderer
PUBLIC REAL_USE_FLOAT
Expand Down

0 comments on commit 70472e1

Please sign in to comment.