summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorpsychocrypt <psychocrypt@users.noreply.github.com>2017-09-29 20:48:33 +0200
committerpsychocrypt <psychocrypt@users.noreply.github.com>2017-09-30 23:46:08 +0200
commit4526840bb6347eaed7d80a807357f969f9c68a40 (patch)
tree9250d5672bdbb2dcae7002772d7728f842dcee55 /CMakeLists.txt
parentcc429b68fadc502b981fd0acd64a5ff6e2ae1d15 (diff)
downloadxmr-stak-4526840bb6347eaed7d80a807357f969f9c68a40.zip
xmr-stak-4526840bb6347eaed7d80a807357f969f9c68a40.tar.gz
update xmake file
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt28
1 files changed, 15 insertions, 13 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5c97ca3..8eff475 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -293,6 +293,8 @@ endif()
# Compile & Link
################################################################################
+include_directories(BEFORE .)
+
if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
# remove warnings that f_open() is not save and f_open_s should be used
add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
@@ -313,7 +315,7 @@ if(CMAKE_LINK_STATIC)
set(LIBS "-static-libgcc -static-libstdc++ ${LIBS}")
endif()
-file(GLOB SRCFILES_C "backend/cpu/crypto/*.c")
+file(GLOB SRCFILES_C "xmrstak/backend/cpu/crypto/*.c")
add_library(xmr-stak-c
STATIC
@@ -321,13 +323,13 @@ add_library(xmr-stak-c
)
file(GLOB BACKEND_CPP
- "*.cpp"
- "backend/cpu/*.cpp"
- "backend/*.cpp"
- "backend/cpu/crypto/*.cpp"
- "http/*.cpp"
- "misc/*.cpp"
- "net/*.cpp")
+ "xmrstak/*.cpp"
+ "xmrstak/backend/cpu/*.cpp"
+ "xmrstak/backend/*.cpp"
+ "xmrstak/backend/cpu/crypto/*.cpp"
+ "xmrstak/http/*.cpp"
+ "xmrstak/misc/*.cpp"
+ "xmrstak/net/*.cpp")
add_library(xmr-stak-backend
STATIC
@@ -337,8 +339,8 @@ target_link_libraries(xmr-stak-backend xmr-stak-c ${CMAKE_DL_LIBS})
if(CUDA_FOUND)
file(GLOB CUDASRCFILES
- "backend/nvidia/nvcc_code/*.cu"
- "backend/nvidia/*.cpp")
+ "xmrstak/backend/nvidia/nvcc_code/*.cu"
+ "xmrstak/backend/nvidia/*.cpp")
# build device code with nvcc
cuda_add_library(xmrstak_cuda_backend
@@ -353,8 +355,8 @@ endif()
if(OpenCL_FOUND)
file(GLOB OPENCLSRCFILES
- "backend/amd/amd_gpu/*.cpp"
- "backend/amd/*.cpp")
+ "xmrstak/backend/amd/amd_gpu/*.cpp"
+ "xmrstak/backend/amd/*.cpp")
add_library(xmrstak_opencl_backend
SHARED
${OPENCLSRCFILES}
@@ -365,7 +367,7 @@ if(OpenCL_FOUND)
endif()
endif()
-file(GLOB SRCFILES_CPP "cli/*.cpp")
+file(GLOB SRCFILES_CPP "xmrstak/cli/*.cpp")
set_source_files_properties(${SRCFILES_CPP} PROPERTIES LANGUAGE CXX)
set_property(TARGET xmr-stak-c PROPERTY C_STANDARD 99)
OpenPOWER on IntegriCloud