fix windows build, add argp to tree to allow building for windows
This commit is contained in:
parent
e25d7347c6
commit
ff6b89b495
19 changed files with 5951 additions and 2 deletions
|
|
@ -11,6 +11,17 @@ if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
|||
endif(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
||||
|
||||
set(SRC_FILES eismultiplexer.c usbshm.c)
|
||||
|
||||
message("Platform " ${CMAKE_SYSTEM_NAME})
|
||||
if(WIN32)
|
||||
message("Building for Windows")
|
||||
file(GLOB_RECURSE ARGP_SRC ${PROJECT_SOURCE_DIR}/argp/*.*)
|
||||
set(SRC_FILES ${SRC_FILES} ${ARGP_SRC})
|
||||
include_directories(./argp)
|
||||
else()
|
||||
message("Building for UNIX")
|
||||
endif(WIN32)
|
||||
|
||||
add_library(${PROJECT_NAME} SHARED ${SRC_FILES})
|
||||
target_link_libraries(${PROJECT_NAME} ${LIBUSB_LIBRARIES})
|
||||
target_include_directories(${PROJECT_NAME} PUBLIC ${LIBUSB_INCLUDE_DIRS})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue