@@ -17,21 +17,24 @@ find_package(Qt53DRender REQUIRED)
17
17
find_package (Qt53DInput REQUIRED)
18
18
find_package (Qt53DExtras REQUIRED)
19
19
20
- set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR} /cmake/modules/" )
20
+ set (CMAKE_MODULE_PATH
21
+ ${CMAKE_MODULE_PATH}
22
+ ${CMAKE_CURRENT_SOURCE_DIR} /cmake/modules
23
+ ${CMAKE_CURRENT_SOURCE_DIR} /cmake/CoppeliaRobotics-modules)
21
24
find_package (VREP 3.5.0 REQUIRED)
22
25
23
26
include_directories (${VREP_INCLUDE} )
24
- include_directories (${CMAKE_BINARY_DIR } /generated )
25
- include_directories (${CMAKE_SOURCE_DIR } /external)
26
- include_directories (${CMAKE_SOURCE_DIR } /external/QDataflowCanvas)
27
- include_directories (${CMAKE_SOURCE_DIR } /external/QCustomPlot-2.0.0)
27
+ include_directories (${CMAKE_CURRENT_BINARY_DIR } /generated )
28
+ include_directories (${CMAKE_CURRENT_SOURCE_DIR } /external)
29
+ include_directories (${CMAKE_CURRENT_SOURCE_DIR } /external/QDataflowCanvas)
30
+ include_directories (${CMAKE_CURRENT_SOURCE_DIR } /external/QCustomPlot-2.0.0)
28
31
include_directories (${Boost_INCLUDE_DIRS} )
29
32
30
- vrep_generate_stubs(${CMAKE_BINARY_DIR } /generated XML_FILE ${CMAKE_SOURCE_DIR } /callbacks.xml LUA_FILE ${CMAKE_SOURCE_DIR } /simExtCustomUI.lua)
33
+ vrep_generate_stubs(${CMAKE_CURRENT_BINARY_DIR } /generated XML_FILE ${CMAKE_CURRENT_SOURCE_DIR } /callbacks.xml LUA_FILE ${CMAKE_CURRENT_SOURCE_DIR } /simExtCustomUI.lua)
31
34
32
- add_custom_command (OUTPUT ${CMAKE_BINARY_DIR } /generated /widgets.html
33
- COMMAND xsltproc -o ${CMAKE_BINARY_DIR } /generated /widgets.html ${CMAKE_SOURCE_DIR } /widgets.xsl ${CMAKE_SOURCE_DIR } /widgets.xml
34
- DEPENDS ${CMAKE_SOURCE_DIR } /widgets.xml ${CMAKE_SOURCE_DIR } /widgets.xsl)
35
+ add_custom_command (OUTPUT ${CMAKE_CURRENT_BINARY_DIR } /generated /widgets.html
36
+ COMMAND xsltproc -o ${CMAKE_CURRENT_BINARY_DIR } /generated /widgets.html ${CMAKE_CURRENT_SOURCE_DIR } /widgets.xsl ${CMAKE_CURRENT_SOURCE_DIR } /widgets.xml
37
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR } /widgets.xml ${CMAKE_CURRENT_SOURCE_DIR } /widgets.xsl)
35
38
36
39
set (ENABLE_SIGNAL_SPY false CACHE BOOL "if Qt private headers are installed, enable this to debug Qt signals" )
37
40
set (WIDGET_BUTTON true CACHE BOOL "include the button widget" )
@@ -58,7 +61,7 @@ set(WIDGET_TEXTBROWSER true CACHE BOOL "include the textbrowser widget")
58
61
set (WIDGET_TREE true CACHE BOOL "include the tree widget" )
59
62
set (WIDGET_VSLIDER true CACHE BOOL "include the vslider widget" )
60
63
61
- configure_file (${CMAKE_SOURCE_DIR } /config.h.in ${CMAKE_BINARY_DIR } /config.h)
64
+ configure_file (${CMAKE_CURRENT_SOURCE_DIR } /config.h.in ${CMAKE_CURRENT_BINARY_DIR } /config.h)
62
65
63
66
set (SOURCES
64
67
Proxy.cpp
@@ -73,8 +76,8 @@ set(SOURCES
73
76
widgets/LayoutWidget.cpp
74
77
widgets/Widget.cpp
75
78
widgets/Window.cpp
76
- ${CMAKE_SOURCE_DIR } /external/v_repPlusPlus/Plugin.cpp
77
- ${CMAKE_BINARY_DIR } /generated /stubs.cpp
79
+ ${CMAKE_CURRENT_SOURCE_DIR } /external/v_repPlusPlus/Plugin.cpp
80
+ ${CMAKE_CURRENT_BINARY_DIR } /generated /stubs.cpp
78
81
${VREP_EXPORTED_SOURCES}
79
82
)
80
83
0 commit comments