A bunch of useful/random cmake files
This file fetches SDL2 and adds it's subdirectory.
None
# Before declaring the target
include(path/to/sdl2.cmake)
getSDL2(<version>)
# Declare your target
target_link_libraries(<target> PRIVATE SDL2)
target_include_directories(<target> PRIVATE ${sdl2_SOURCE_DIR}/include)
This file fetches the nall STL and adds it's subdirectory.
None but make sure that CMAKE_CXX_STANDARD
is set to 17
or above
# Before declaring the target
include(path/to/nall.cmake)
getNall()
# Declare your target
target_link_libraries(<target> PRIVATE nall)
This file fetches the hiro GUI library and adds it's subdirectory.
Nall
# Before declaring the target
include(path/to/nall.cmake)
getNall()
include(path/to/hiro.cmake)
getHiro()
# Declare your target
target_link_libraries(<target> PRIVATE nall hiro)