Skip to content

Commit bd7e4dc

Browse files
committed
xrMiscMath: add to linux build
1 parent 0351957 commit bd7e4dc

File tree

10 files changed

+43
-22
lines changed

10 files changed

+43
-22
lines changed

src/utils/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
add_subdirectory(xrLCUtil)
22
add_subdirectory(xrQSlim)
3+
add_subdirectory(xrMiscMath)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
project(xrMiscMath)
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}/./LevelCompilerLoggerWindow.cpp")
15+
#ist(REMOVE_ITEM ${PROJECT_NAME}__INCLUDES "${CMAKE_CURRENT_SOURCE_DIR}/./LevelCompilerLoggerWindow.hpp")
16+
17+
add_library(${PROJECT_NAME} STATIC ${${PROJECT_NAME}__SOURCES} ${${PROJECT_NAME}__INCLUDES})
18+
set_property(TARGET ${PROJECT_NAME} PROPERTY POSITION_INDEPENDENT_CODE ON)

src/xrAICore/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ add_definitions(-DXRAICORE_EXPORTS -DAI_COMPILER -D_SECURE_SCL=0)
2626
add_library(${PROJECT_NAME} SHARED ${${PROJECT_NAME}__SOURCES} ${${PROJECT_NAME}__INCLUDES})
2727

2828
set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
29-
target_link_libraries(${PROJECT_NAME} xrCore xrAPI xrScriptEngine luabind luajit)
29+
target_link_libraries(${PROJECT_NAME} xrCore xrMiscMath xrAPI xrScriptEngine luabind luajit)

src/xrCDB/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
project(xrCDB)
22

33
list(APPEND DIRS
4-
"."
5-
)
4+
"."
5+
)
66

77
add_dir("${DIRS}")
88

@@ -11,4 +11,4 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.
1111
add_library(${PROJECT_NAME} SHARED ${${PROJECT_NAME}__SOURCES} ${${PROJECT_NAME}__INCLUDES})
1212

1313
set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
14-
target_link_libraries(${PROJECT_NAME} xrCore OPCODE xrAPI)
14+
target_link_libraries(${PROJECT_NAME} xrCore xrMiscMath OPCODE xrAPI)

src/xrCore/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
3131
#this is a temporary solution until find_package will not be fixed
3232
set(TBB_LIBRARIES tbb tbbmalloc_proxy tbbmalloc)
3333

34-
target_link_libraries(${PROJECT_NAME} ${SDL_LIBRARIES} ${LZO_LIBRARY} crypto++ ${PUGIXML_LIBRARY} ${TBB_LIBRARIES})
34+
target_link_libraries(${PROJECT_NAME} xrMiscMath ${SDL_LIBRARIES} ${LZO_LIBRARY} ${CRYPTO++_LIBRARIES} ${PUGIXML_LIBRARY} ${TBB_LIBRARIES})

src/xrCore/_vector2.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#ifndef __V2D__
33
#define __V2D__
44
#include "xrCommon/inlining_macros.h"
5+
#include "xrCore/math_constants.h"
6+
57

68
#ifdef min
79
# undef min

src/xrEngine/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ add_definitions(-DENGINE_BUILD)
2929
add_library(${PROJECT_NAME} SHARED ${${PROJECT_NAME}__SOURCES} ${${PROJECT_NAME}__INCLUDES})
3030

3131
set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
32-
target_link_libraries(${PROJECT_NAME} xrCore luabind xrAPI xrSound xrScriptEngine luajit theora ${OGG_LIBRARIES} xrCDB xrPhysics freeimage openal lockfile ${SDL_LIBRARIES})
32+
target_link_libraries(${PROJECT_NAME} xrCore xrMiscMath luabind xrAPI xrSound xrScriptEngine luajit theora ${OGG_LIBRARIES} xrCDB xrPhysics freeimage openal lockfile ${SDL_LIBRARIES})

src/xrParticles/CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
project(xrParticles)
22

33
list(APPEND DIRS
4-
"."
5-
)
4+
"."
5+
)
66

77
add_dir("${DIRS}")
88

99
include_directories(
10-
${CMAKE_CURRENT_SOURCE_DIR}/..
11-
${CMAKE_CURRENT_SOURCE_DIR}/../../sdk/include
12-
)
10+
${CMAKE_CURRENT_SOURCE_DIR}/..
11+
${CMAKE_CURRENT_SOURCE_DIR}/../../sdk/include
12+
)
1313

1414
#list(REMOVE_ITEM ${PROJECT_NAME}__SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/./xr_cda.cpp")
1515
#list(REMOVE_ITEM ${PROJECT_NAME}__INCLUDES "${CMAKE_CURRENT_SOURCE_DIR}/./xr_cda.h")
@@ -18,4 +18,4 @@ add_definitions(-DXR_PARTICLES_EXPORTS)
1818
add_library(${PROJECT_NAME} SHARED ${${PROJECT_NAME}__SOURCES} ${${PROJECT_NAME}__INCLUDES})
1919

2020
set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
21-
target_link_libraries(${PROJECT_NAME} xrCore)
21+
target_link_libraries(${PROJECT_NAME} xrCore xrMiscMath)

src/xrPhysics/CMakeLists.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
project(xrPhysics)
22

33
list(APPEND DIRS
4-
"."
5-
"tri-colliderknoopc"
6-
"dcylinder"
7-
)
4+
"."
5+
"tri-colliderknoopc"
6+
"dcylinder"
7+
)
88

99
add_dir("${DIRS}")
1010

1111
include_directories(
12-
${CMAKE_CURRENT_SOURCE_DIR}/..
13-
${CMAKE_CURRENT_SOURCE_DIR}/../../Externals/ode/include
14-
${CMAKE_CURRENT_SOURCE_DIR}/../../sdk/include
12+
${CMAKE_CURRENT_SOURCE_DIR}/..
13+
${CMAKE_CURRENT_SOURCE_DIR}/../../Externals/ode/include
14+
${CMAKE_CURRENT_SOURCE_DIR}/../../sdk/include
1515
/usr/include/SDL2
16-
)
16+
)
1717

1818
list(REMOVE_ITEM ${PROJECT_NAME}__SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/tri-colliderknoopc/dcTriListCollider.cpp")
1919
#list(REMOVE_ITEM ${PROJECT_NAME}__INCLUDES "${CMAKE_CURRENT_SOURCE_DIR}/./xr_cda.h")
@@ -22,4 +22,4 @@ add_definitions(-DXRPHYSICS_EXPORTS -DdSINGLE -D_SECURE_SCL=0)
2222
add_library(${PROJECT_NAME} SHARED ${${PROJECT_NAME}__SOURCES} ${${PROJECT_NAME}__INCLUDES})
2323

2424
set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
25-
target_link_libraries(${PROJECT_NAME} xrCore ODE xrScriptEngine xrAPI xrCDB xrSound)
25+
target_link_libraries(${PROJECT_NAME} xrCore xrMiscMath ODE xrScriptEngine xrAPI xrCDB xrSound)

src/xrSound/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ add_definitions(-DXRSOUND_EXPORTS -DdSINGLE -D_SECURE_SCL=0)
2525
add_library(${PROJECT_NAME} SHARED ${${PROJECT_NAME}__SOURCES} ${${PROJECT_NAME}__INCLUDES})
2626

2727
set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
28-
target_link_libraries(${PROJECT_NAME} xrCore xrAPI xrCDB ${OGG_LIBRARIES} openal vorbis vorbisfile)
28+
target_link_libraries(${PROJECT_NAME} xrCore xrMiscMath xrAPI xrCDB ${OGG_LIBRARIES} openal vorbis vorbisfile)

0 commit comments

Comments
 (0)