Skip to content

Commit ceb58e7

Browse files
committed
xrParticles: add to Linux build
1 parent fc132b6 commit ceb58e7

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ add_subdirectory(xrCore)
77
#add_subdirectory(xrEngine)
88
#add_subdirectory(xrGame)
99
#add_subdirectory(xrNetServer)
10-
#add_subdirectory(xrParticles)
10+
add_subdirectory(xrParticles)
1111
add_subdirectory(xrPhysics)
1212
add_subdirectory(xrScriptEngine)
1313
add_subdirectory(xrSound)

src/xrParticles/CMakeLists.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
project(xrParticles)
2+
3+
list(APPEND DIRS
4+
"."
5+
)
6+
7+
add_dir("${DIRS}")
8+
9+
include_directories(
10+
${CMAKE_CURRENT_SOURCE_DIR}/..
11+
${CMAKE_CURRENT_SOURCE_DIR}/../../sdk/include
12+
)
13+
14+
#list(REMOVE_ITEM ${PROJECT_NAME}__SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/./xr_cda.cpp")
15+
#list(REMOVE_ITEM ${PROJECT_NAME}__INCLUDES "${CMAKE_CURRENT_SOURCE_DIR}/./xr_cda.h")
16+
17+
add_definitions(-DXR_PARTICLES_EXPORTS)
18+
add_library(${PROJECT_NAME} SHARED ${${PROJECT_NAME}__SOURCES} ${${PROJECT_NAME}__INCLUDES})
19+
20+
set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
21+
target_link_libraries(${PROJECT_NAME} xrCore)

0 commit comments

Comments
 (0)