-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: adding test for building a linked develspace with files with u…
…nicode names
- Loading branch information
Showing
8 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
tests/system/resources/catkin_pkgs/products_unicode/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
cmake_minimum_required(VERSION 2.8.3) | ||
project(products_unicode) | ||
find_package(catkin REQUIRED) | ||
|
||
catkin_package( | ||
INCLUDE_DIRS include | ||
LIBRARIES ${PROJECT_NAME}_lib | ||
CFG_EXTRAS extras.cmake) | ||
|
||
include_directories(include) | ||
|
||
add_library(${PROJECT_NAME}_lib lib.cpp) | ||
set_target_properties(${PROJECT_NAME}_lib PROPERTIES OUTPUT_NAME "${PROJECT_NAME}_lïb") | ||
target_link_libraries(${PROJECT_NAME}_lib ${catkin_LIBRARIES}) | ||
|
||
add_executable(main main.cpp) | ||
set_target_properties(main PROPERTIES OUTPUT_NAME "maïn") | ||
target_link_libraries(main ${PROJECT_NAME}_lib ${catkin_LIBRARIES}) | ||
|
||
install(TARGETS ${PROJECT_NAME}_lib main | ||
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} | ||
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} | ||
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} | ||
) |
1 change: 1 addition & 0 deletions
1
tests/system/resources/catkin_pkgs/products_unicode/cmake/extras.cmake.develspace.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
set($ENV{PRODUCTS_UNICODE} "devel") |
1 change: 1 addition & 0 deletions
1
tests/system/resources/catkin_pkgs/products_unicode/cmake/extras.cmake.installspace.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
set($ENV{PRODUCTS_UNICODE} "install") |
3 changes: 3 additions & 0 deletions
3
tests/system/resources/catkin_pkgs/products_unicode/include/make_products_0/fun.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
namespace make_products_0 { | ||
int fun(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#include <make_products_0/fun.h> | ||
int make_products_0::fun() { | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
#include <make_products_0/fun.h> | ||
|
||
int main(int argc, char** argv) { | ||
return make_products_0::fun(); | ||
} |
9 changes: 9 additions & 0 deletions
9
tests/system/resources/catkin_pkgs/products_unicode/package.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0"?> | ||
<package> | ||
<name>products_unicode</name> | ||
<version>0.1.0</version> | ||
<description>This package generates products in the make stage.</description> | ||
<maintainer email="todo@todo.todo">todo</maintainer> | ||
<license>BSD</license> | ||
<buildtool_depend>catkin</buildtool_depend> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters