-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCMakeLists.txt
29 lines (25 loc) · 1.1 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
cmake_minimum_required(VERSION 3.12)
project(manual)
find_package(Python3 REQUIRED COMPONENTS Interpreter)
if(NOT COPPELIASIM_INCLUDE_DIR)
if(DEFINED ENV{COPPELIASIM_ROOT_DIR})
set(COPPELIASIM_INCLUDE_DIR $ENV{COPPELIASIM_ROOT_DIR}/programming/include)
else()
set(COPPELIASIM_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../include)
endif()
endif()
list(APPEND CMAKE_MODULE_PATH ${COPPELIASIM_INCLUDE_DIR}/cmake)
find_package(CoppeliaSim 4.5.0.7 REQUIRED)
add_custom_target(genRegularApi ALL
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/genRegularApi.py
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/en/regularApi_deprecated ${CMAKE_CURRENT_SOURCE_DIR}/en/regularApi
)
file(GLOB HELP_FILES CONFIGURE_DEPENDS *.html *.lua *.class *.css *.txt)
list(FILTER HELP_FILES EXCLUDE REGEX "/CMakeLists\\.txt$")
foreach(HELP_FILE IN LISTS HELP_FILES)
coppeliasim_add_manual(${HELP_FILE} SUBDIR .)
endforeach()
coppeliasim_add_manual_directory(en)
coppeliasim_add_manual_directory(index)
coppeliasim_add_manual_directory(wb_img)
coppeliasim_add_manual_directory(js)