Skip to content

Commit

Permalink
Moved DialogTemplate from Src/Plugin to Orbitersdk/samples
Browse files Browse the repository at this point in the history
  • Loading branch information
mschweiger committed Jul 12, 2021
1 parent c3bb740 commit c862b3d
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ endfunction()
# Sub-projects
add_subdirectory(Src)
add_subdirectory(Utils)
add_subdirectory(Orbitersdk)

if(ORBITER_MAKE_DOC)
add_subdirectory(Doc)
Expand Down
1 change: 1 addition & 0 deletions Orbitersdk/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
add_subdirectory(samples)
1 change: 1 addition & 0 deletions Orbitersdk/samples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
add_subdirectory(DialogTemplate)
27 changes: 27 additions & 0 deletions Orbitersdk/samples/DialogTemplate/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# The target directory for plugin DLLs
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${ORBITER_BINARY_PLUGIN_DIR})

add_library(DialogTemplate SHARED
DialogTemplate.cpp
DialogTemplate.rc
)

target_include_directories(DialogTemplate
PUBLIC ${ORBITER_SOURCE_SDK_INCLUDE_DIR}
# PUBLIC ${MODULE_COMMON_DIR}
)

target_link_libraries(DialogTemplate
${ORBITER_LIB}
${ORBITER_SDK_LIB}
)

add_dependencies(DialogTemplate
Orbiter
Orbitersdk
)

set_target_properties(DialogTemplate
PROPERTIES
FOLDER Modules
)
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ END
STRINGTABLE
BEGIN
IDS_INFO "DIALOG TEMPLATE:\r\n\r\nA simple SDK example which provides a dialog box that can be opened during a simulation session via the ""My dialog"" entry in the Custom Functions list (Ctrl-F4).\r\n\r\nThis addon is not very useful - it is intended as a starting point for developers."
IDS_TYPE "Developer resources and samples"
IDS_TYPE "SDK sample plugins"
END

#endif // English (U.K.) resources
Expand Down
Binary file added Orbitersdk/samples/DialogTemplate/RCa05632
Binary file not shown.
File renamed without changes.

0 comments on commit c862b3d

Please sign in to comment.