Skip to content

Commit

Permalink
Use GLOB_RECURSE so you don't have to specify all 7 folders
Browse files Browse the repository at this point in the history
  • Loading branch information
SomePineaple committed Apr 18, 2022
1 parent bfb7742 commit bc48255
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,7 @@ include_directories(${JNI_INCLUDE_DIRS} ${SDL2_INCLUDE_DIRS} ${OPENGL_INCLUDE_DI
link_libraries(${JNI_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${SDL2_LIBRARIES} ${CMAKE_DL_LIBS} ${OPENGL_gl_LIBRARY} OpenGL::GL ${X11_LIBRARIES})

if (NOT DEFINED SOURCES)
file(GLOB PHANTOM_SOURCE_FILES src/*.*
src/*/*.*
src/*/*/*.*
src/*/*/*/*.*
src/*/*/*/*/*.*
src/*/*/*/*/*/*.*
src/*/*/*/*/*/*/*.*
src/*/*/*/*/*/*/*/*.*
src/*/*/*/*/*/*/*/*/*.*)
file(GLOB_RECURSE PHANTOM_SOURCE_FILES src/*.*)
endif ()

source_group("Source Files" FILES ${PHANTOM_SOURCE_FILES})
Expand Down

0 comments on commit bc48255

Please sign in to comment.