forked from BluewhaleRobot/SharpLink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
36 lines (28 loc) · 1.2 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
cmake_minimum_required(VERSION 2.8.3)
project(sharplink)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED)
## System dependencies are found with CMake's conventions
###################################################
## Declare things to be passed to other projects ##
###################################################
## LIBRARIES: libraries you create in this project that dependent projects also need
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need
catkin_package()
###########
## Build ##
###########
set(BUILD_CMD "xbuild")
set(BUILD_OPTION "/p:Configuration=Release POSIX")
set(SOLUTION_NAME "${CMAKE_CURRENT_LIST_DIR}/SharpLink.sln")
execute_process(COMMAND ${BUILD_CMD} ${BUILD_OPTION} ${SOLUTION_NAME})
execute_process(COMMAND "chmod" "+x" "${CMAKE_CURRENT_LIST_DIR}/SharpLink/bin/Release/SharpLink.exe")
# set right permissions
# copy to devel
file(GLOB SharpLinkFiles
"SharpLink/bin/Release/*"
)
file(COPY ${SharpLinkFiles} DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})