Skip to content

Commit 077478d

Browse files
committed
xrAPI: added to CMake linux build
1 parent 9c80b2e commit 077478d

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#add_subdirectory(utils)
2-
#add_subdirectory(Layers)
2+
add_subdirectory(Layers)
33
#add_subdirectory(xrMisc)
44
#add_subdirectory(xrAICore)
55
#add_subdirectory(xrCDB)

src/Layers/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
add_subdirectory(xrAPI)

src/Layers/xrAPI/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../.. ${CMAKE_CURRENT_SOURCE_DIR}/../../../sdk/include)
2+
3+
add_library(xrAPI SHARED "xrAPI.cpp" "stdafx.h")
4+
5+
set_target_properties(xrAPI PROPERTIES PREFIX "")

src/utils.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
macro(add_dir DIRS)
1+
macro(add_dir DIRS PROJECT_NAME)
22
foreach(dir ${DIRS})
33
message( "adding " ${dir} )
44
include_directories (${dir} )
55
file( GLOB ${dir}__INCLUDES_H ${dir} *.h)
66
file( GLOB ${dir}__INCLUDES_HPP ${dir} *.hpp)
7-
list( APPEND XRCORE__INCLUDES ${${dir}__INCLUDES_H} ${${dir}__INCLUDES_HPP} )
7+
list( APPEND ${PROJECT_NAME}__INCLUDES ${${dir}__INCLUDES_H} ${${dir}__INCLUDES_HPP} )
88
file( GLOB ${dir}__SOURCES ${dir} *.cpp)
9-
list( APPEND XRCORE__SOURCES ${${dir}__SOURCES} )
9+
list( APPEND ${PROJECT_NAME}__SOURCES ${${dir}__SOURCES} )
1010
endforeach()
1111
endmacro()

src/xrCore/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ add_dir (
1010
"Text"
1111
"Threading"
1212
"XML"
13-
)
13+
xrCore)
1414

1515
message( "path " ${CMAKE_CURRENT_SOURCE_DIR} )
1616

0 commit comments

Comments
 (0)