Skip to content

Commit

Permalink
Assigned CMAKE variable THIRDPARTY_DIR using CMAKE_SOURCE_DIR instead…
Browse files Browse the repository at this point in the history
… of relative parenting; Renamed C++ files without "omnific" in them;
  • Loading branch information
Jean-LouisH committed Sep 30, 2024
1 parent 07ba751 commit 62ff6ed
Show file tree
Hide file tree
Showing 8 changed files with 603 additions and 18 deletions.
28 changes: 14 additions & 14 deletions src/omnific_engine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ add_library(omnific_engine ${LIBRARY_TYPE}
${omnific_engine_sources}
${omnific_engine_headers})

set(THIRD_PARTY_DIR "../../thirdparty")
set(THIRD_PARTY_DIR ${CMAKE_SOURCE_DIR}/thirdparty)

set(THIRD_PARTY_PROJECTS
glad
Expand Down Expand Up @@ -74,21 +74,21 @@ target_link_libraries (omnific_engine
pybind11::embed
)

if (${LIBRARY_TYPE} STREQUAL "SHARED")
add_definitions(-D_OMNIFIC_ENGINE_EXPORTS)
endif ()
add_definitions(-D_OMNIFIC_ENGINE_EXPORTS_BUILD)
add_definitions(-D_OMNIFIC_APPLICATION_EXPORTS)
add_definitions(-D_OMNIFIC_APPLICATION_EXPORTS_BUILD)

if (CMAKE_BUILD_TYPE STREQUAL "Debug")
add_definitions(-D_DEBUG)
endif()

add_custom_command(TARGET omnific_engine POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:omnific_engine> ${PROJECT_BINARY_DIR}/src/omnific_demos/omnific_engine.${SHARED_LIBRARY_EXTENSION}
)
if (${LIBRARY_TYPE} STREQUAL "SHARED")
add_definitions(-D_OMNIFIC_ENGINE_EXPORTS)

add_custom_command(TARGET omnific_engine POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:omnific_engine> ${PROJECT_BINARY_DIR}/src/omnific_demos/omnific_engine.${SHARED_LIBRARY_EXTENSION}
)

add_custom_command(TARGET omnific_engine POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:omnific_engine> ${PROJECT_BINARY_DIR}/src/omnific_studio/omnific_engine.${SHARED_LIBRARY_EXTENSION}
)
add_custom_command(TARGET omnific_engine POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:omnific_engine> ${PROJECT_BINARY_DIR}/src/omnific_studio/omnific_engine.${SHARED_LIBRARY_EXTENSION}
)
endif ()
add_definitions(-D_OMNIFIC_ENGINE_EXPORTS_BUILD)
add_definitions(-D_OMNIFIC_APPLICATION_EXPORTS)
add_definitions(-D_OMNIFIC_APPLICATION_EXPORTS_BUILD)
Loading

0 comments on commit 62ff6ed

Please sign in to comment.