Add Microsoft Windows support.
Update issue 62 Status: Feedback Gleen, I slightly modified your patches to better stick with the style of the rest of the project, Can you please confirm that it does not break? PR: Issue 62 Submitted by: glenn.ergeerts
This commit is contained in:
parent
0f32259ee2
commit
de64cce14c
8 changed files with 207 additions and 1 deletions
34
libfreefare/CMakeLists.txt
Normal file
34
libfreefare/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# $Id$
|
||||
set(LIBRARY_SOURCES
|
||||
freefare
|
||||
freefare_internal
|
||||
mad
|
||||
mifare_application
|
||||
mifare_classic
|
||||
mifare_desfire
|
||||
mifare_desfire_aid
|
||||
mifare_desfire_crypto
|
||||
mifare_desfire_error
|
||||
mifare_desfire_key
|
||||
mifare_ultralight
|
||||
tlv
|
||||
)
|
||||
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
add_library(freefare SHARED ${LIBRARY_SOURCES})
|
||||
target_link_libraries(freefare ${LIBS})
|
||||
|
||||
set(installheaders freefare.h)
|
||||
install(FILES ${installheaders} DESTINATION ${INCLUDE_INSTALL_DIR}/freefare COMPONENT headers)
|
||||
|
||||
if(WIN32)
|
||||
# On Windows the shared (runtime) library should be either in the same
|
||||
# directory as the excutables or in the path, we add it to same directory
|
||||
install(TARGETS freefare RUNTIME DESTINATION bin COMPONENT libraries)
|
||||
|
||||
# At compile time we need the .LIB file, we place it in the lib directory
|
||||
install(TARGETS freefare ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT headers)
|
||||
else(WIN32)
|
||||
install(TARGETS freefare LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT libraries)
|
||||
endif(WIN32)
|
||||
Loading…
Add table
Add a link
Reference in a new issue