2016-03-04 23:04:30 +00:00
|
|
|
add_library(nod
|
2019-08-30 08:40:16 +00:00
|
|
|
aes.cpp
|
|
|
|
sha1.c
|
|
|
|
|
|
|
|
DirectoryEnumerator.cpp
|
|
|
|
DiscBase.cpp
|
|
|
|
DiscGCN.cpp
|
|
|
|
DiscIOISO.cpp
|
2019-11-24 03:24:33 +00:00
|
|
|
DiscIONFS.cpp
|
2019-08-30 08:40:16 +00:00
|
|
|
DiscIOWBFS.cpp
|
|
|
|
DiscWii.cpp
|
|
|
|
nod.cpp
|
2021-06-22 19:16:56 +00:00
|
|
|
OSUTF.c
|
2022-02-22 05:48:22 +00:00
|
|
|
Util.cpp
|
2019-08-30 08:40:16 +00:00
|
|
|
|
|
|
|
../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
|
2022-02-22 05:48:22 +00:00
|
|
|
../include/nod/OSUTF.h
|
2019-08-30 08:40:16 +00:00
|
|
|
../include/nod/sha1.h
|
|
|
|
../include/nod/Util.hpp
|
|
|
|
)
|
2019-08-30 08:53:03 +00:00
|
|
|
|
|
|
|
target_include_directories(nod PUBLIC
|
|
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>
|
|
|
|
)
|
|
|
|
|
2021-06-22 19:16:56 +00:00
|
|
|
target_link_libraries(nod PUBLIC $<BUILD_INTERFACE:logvisor>)
|
2019-08-10 05:52:25 +00:00
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
target_sources(nod PRIVATE FileIOWin32.cpp)
|
|
|
|
else()
|
|
|
|
target_compile_options(nod PRIVATE -Wno-multichar)
|
|
|
|
target_sources(nod PRIVATE FileIOFILE.cpp)
|
|
|
|
endif()
|
|
|
|
|
2021-01-07 01:32:21 +00:00
|
|
|
if(NOT MSVC AND ${CMAKE_SYSTEM_PROCESSOR} STREQUAL x86_64)
|
2019-06-12 01:54:20 +00:00
|
|
|
set_source_files_properties(aes.cpp PROPERTIES COMPILE_FLAGS -maes)
|
2015-07-22 19:01:28 +00:00
|
|
|
endif()
|
2019-05-24 00:17:45 +00:00
|
|
|
|
|
|
|
# Associate target with export
|
|
|
|
install(
|
|
|
|
TARGETS nod
|
|
|
|
EXPORT nodTargets
|
|
|
|
ARCHIVE DESTINATION "lib"
|
|
|
|
INCLUDES DESTINATION include # This sets the INTERFACE_INCLUDE_DIRECTORIES property of the target.
|
|
|
|
)
|
2019-08-30 08:53:03 +00:00
|
|
|
|
|
|
|
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../include/nod DESTINATION include)
|