Skip to content

Commit 55a8d11

Browse files
committed
Better align about window and add copying to release folder
1 parent 5bcf8f3 commit 55a8d11

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

CMakeLists.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,30 @@ if (BUILD_STATIC)
198198
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++ ${CMAKE_EXE_LINKER_FLAGS}")
199199
endif ()
200200

201+
# Copying files to release dir
201202
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/Sources/UserInterface/Themes
202203
DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
203204

205+
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/Plugin
206+
DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
207+
208+
if(UNIX)
209+
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/linux_scripts
210+
DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
211+
endif()
212+
213+
if(BUILD_DOC)
214+
add_custom_target(build_setupguide ALL
215+
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/Docs
216+
COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/Docs/generate_pdf.sh"
217+
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/Docs/README.pdf ${CMAKE_CURRENT_BINARY_DIR}
218+
VERBATIM)
219+
endif()
220+
204221
target_include_directories(xlinkhandheldassistant PRIVATE ${PCAP_INCLUDE_DIR} ${Boost_INCLUDE_DIR} ${CURSES_INCLUDE_DIRS} ${LibNL_INCLUDE_DIR})
205222
target_link_libraries(xlinkhandheldassistant Threads::Threads ${PCAP_LIBRARY} ${Boost_LIBRARIES} ${CURSES_LIBRARIES} ${PLATFORM_SPECIFIC_LIBRARIES} ${LibNL_LIBRARIES})
206223

224+
207225
if (ENABLE_TESTS)
208226
find_package(GTest REQUIRED)
209227
include(GoogleTest)

0 commit comments

Comments
 (0)