mirror of https://github.com/AxioDL/nod.git
CMakeLists: Eliminate glob statement
Avoids a top-level variable from being defined and adds the source files explicitly to the target like our other targets.
This commit is contained in:
parent
df1e450728
commit
89df98ee96
|
@ -17,8 +17,6 @@ if (NOT TARGET logvisor)
|
|||
add_subdirectory(logvisor)
|
||||
endif()
|
||||
|
||||
file(GLOB NOD_HEADERS include/nod/*.h*)
|
||||
|
||||
add_subdirectory(lib)
|
||||
add_subdirectory(driver)
|
||||
target_include_directories(nod PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
|
||||
|
|
|
@ -1,14 +1,26 @@
|
|||
add_library(nod
|
||||
aes.cpp
|
||||
sha1.c
|
||||
DiscBase.cpp
|
||||
DiscGCN.cpp
|
||||
DiscIOISO.cpp
|
||||
DiscIOWBFS.cpp
|
||||
DiscWii.cpp
|
||||
DirectoryEnumerator.cpp
|
||||
nod.cpp
|
||||
${NOD_HEADERS})
|
||||
aes.cpp
|
||||
sha1.c
|
||||
|
||||
DirectoryEnumerator.cpp
|
||||
DiscBase.cpp
|
||||
DiscGCN.cpp
|
||||
DiscIOISO.cpp
|
||||
DiscIOWBFS.cpp
|
||||
DiscWii.cpp
|
||||
nod.cpp
|
||||
|
||||
../include/nod/aes.hpp
|
||||
../include/nod/DirectoryEnumerator.hpp
|
||||
../include/nod/DiscBase.hpp
|
||||
../include/nod/DiscGCN.hpp
|
||||
../include/nod/DiscWii.hpp
|
||||
../include/nod/IDiscIO.hpp
|
||||
../include/nod/IFileIO.hpp
|
||||
../include/nod/nod.hpp
|
||||
../include/nod/sha1.h
|
||||
../include/nod/Util.hpp
|
||||
)
|
||||
target_link_libraries(nod PUBLIC logvisor)
|
||||
|
||||
if(WIN32)
|
||||
|
|
Loading…
Reference in New Issue