Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@ find_package(SFML 2.5 COMPONENTS system window graphics audio REQUIRED)

## TARGETS

set(MarbleMarcherDepTargets
sfml-system
sfml-window
sfml-graphics
sfml-audio
)

add_subdirectory(src)
target_include_directories(MarbleMarcherSources PUBLIC
${EIGEN3_INCLUDE_DIR}
${SFML_INCLUDE_DIR}
)
target_compile_definitions(MarbleMarcherSources PRIVATE SFML_STATIC)

Expand All @@ -25,8 +31,4 @@ endif()
target_compile_definitions(MarbleMarcher PRIVATE SFML_STATIC)
target_link_libraries(MarbleMarcher
MarbleMarcherSources
sfml-system
sfml-window
sfml-graphics
sfml-audio
)
3 changes: 3 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ add_library(MarbleMarcherSources
SelectRes.h
Settings.h
)
target_link_libraries(MarbleMarcherSources
${MarbleMarcherDepTargets}
)