Skip to content

Commit

Permalink
added cmake find packages
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGAzed committed Jun 23, 2024
1 parent 19962f3 commit 5801bd2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions external/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ set_target_properties(NUKLEAR_LIB PROPERTIES LINKER_LANGUAGE C)

target_include_directories(NUKLEAR_LIB INTERFACE nuklear/src)

add_subdirectory(glfw)

add_library(GLFW_LIB SHARED "" glfw/src)
find_package(PkgConfig REQUIRED)
pkg_check_modules(WAYLAND REQUIRED wayland-client wayland-cursor wayland-egl xkbcommon)
find_package(X11 REQUIRED)
find_package(Doxygen)

target_include_directories(GLFW_LIB PUBLIC glfw/include)
set_target_properties(GLFW_LIB PROPERTIES LINKER_LANGUAGE C)
set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
add_subdirectory(glfw)
Empty file removed external/nuklear.h
Empty file.

0 comments on commit 5801bd2

Please sign in to comment.