File tree Expand file tree Collapse file tree 3 files changed +25
-34
lines changed Expand file tree Collapse file tree 3 files changed +25
-34
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ message("System TANGO_HOST=$ENV{TANGO_HOST}")
17
17
set (TANGO_HOST $ENV{TANGO_HOST} )
18
18
include (configure/CMakeLists.txt )
19
19
20
- include_directories (${PROJECT_BINARY_DIR} / generated )
20
+ include_directories (generated )
21
21
include_directories (include )
22
22
#required for generated config.h
23
23
include_directories (${PROJECT_BINARY_DIR} /include )
Original file line number Diff line number Diff line change 1
- add_custom_command (
2
- OUTPUT tango.h tangoSK.cpp tangoDynSK.cpp
3
- COMMAND ${CMAKE_COMMAND} -DOMNIIDL_PATH=${OMNIIDL_PATH} -DIDL_PKG_INCLUDE_DIRS=${IDL_PKG_INCLUDE_DIRS}
4
- -DCMAKE_INSTALL_FULL_INCLUDEDIR=${CMAKE_INSTALL_FULL_INCLUDEDIR} -DPATCHES_SOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR} -P ${CMAKE_CURRENT_SOURCE_DIR} /generate.cmake
5
- WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
6
- )
1
+ message ("Generate tango.h, tangoSK.cpp and tangoDybSK.cpp from idl" )
2
+
3
+ execute_process (COMMAND ${OMNIIDL_PATH} omniidl -I${IDL_PKG_INCLUDE_DIRS} -bcxx -Wbh=.h -Wbs=SK.cpp -Wbd=DynSK.cpp -Wba ${IDL_PKG_INCLUDE_DIRS} /tango.idl
4
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
5
+ RESULT_VARIABLE FAILED )
6
+
7
+ if (${FAILED} )
8
+ message (SEND_ERROR " Failed to generate source files from idl. rv=${FAILED} " )
9
+ endif ()
10
+
11
+ FILE (GLOB ENHANCEMENTS Enhance* )
12
+
13
+ foreach (ENHANCEMENT ${ENHANCEMENTS} )
14
+ message ("Applying enhancement ${ENHANCEMENT} " )
15
+ execute_process (COMMAND sed -i -f ${ENHANCEMENT} tango.h
16
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
17
+ RESULT_VARIABLE FAILED )
18
+
19
+ #non-zero
20
+ if (${FAILED} )
21
+ message (SEND_ERROR " Failed to apply ${ENHANCEMENT} . rv=${FAILED} " )
22
+ endif ()
23
+ endforeach (ENHANCEMENT )
7
24
8
25
set (SOURCES tangoSK.cpp
9
26
tangoDynSK.cpp )
10
27
11
28
add_library (idl_objects OBJECT ${SOURCES} tango.h )
12
29
target_compile_options (idl_objects PRIVATE -fPIC )
13
30
14
- install (FILES ${CMAKE_CURRENT_BINARY_DIR} / tango.h DESTINATION "${CMAKE_INSTALL_FULL_INCLUDEDIR} /idl" )
31
+ install (FILES tango.h DESTINATION "${CMAKE_INSTALL_FULL_INCLUDEDIR} /idl" )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments