You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 2.4KB

  1. # This CMakeLists.txt is not meant to actually work!
  2. # It only serves as a dummy project to make CLion work properly when it comes to symbol resolution and all the nice
  3. # features dependent on that. Building must still be done on the command line using the automake build chain
  4. # If you load this project in CLion and would like to run/debug executables, make sure to remove the "Build" entry from
  5. # the run/debug configuration as otherwise CLion will try to build this project with cmake, failing horribly.
  6. # You'll also have to manually change the executable in the configuration to the correct path of the already built executable
  7. cmake_minimum_required(VERSION 3.7)
  8. project(ruxcrypto)
  9. set(CMAKE_CXX_STANDARD 14)
  10. include_directories(
  11. src
  12. src/qt/forms
  13. src/leveldb/include
  14. src/univalue/include
  15. )
  16. if(UNIX AND NOT APPLE)
  17. set(DEPENDS_PREFIX depends/x86_64-pc-linux-gnu)
  18. elseif(APPLE)
  19. set(DEPENDS_PREFIX depends/x86_64-apple-darwin11)
  20. elseif(WIN32)
  21. set(DEPENDS_PREFIX depends/x86_64-w64-mingw32)
  22. endif()
  23. message(STATUS "DEPENDS_PREFIX: ${DEPENDS_PREFIX}")
  24. if(DEFINED DEPENDS_PREFIX)
  25. include_directories(${DEPENDS_PREFIX}/include)
  26. include_directories(${DEPENDS_PREFIX}/include/QtWidgets)
  27. endif()
  28. add_definitions(
  29. -DENABLE_WALLET=1
  30. )
  31. file(GLOB SOURCE_FILES
  32. src/bench/*.cpp
  33. src/bench/*.h
  34. src/bls/*.cpp
  35. src/bls/*.h
  36. src/compat/*.cpp
  37. src/compat/*.h
  38. src/consensus/*.h
  39. src/consensus/*.cpp
  40. src/crypto/*.c
  41. src/crypto/*.h
  42. src/crypto/*.cpp
  43. src/leveldb/db/*.cc
  44. src/leveldb/db/*.h
  45. src/leveldb/include/*.h
  46. src/policy/*.cpp
  47. src/policy/*.h
  48. src/primitives/*.cpp
  49. src/primitives/*.h
  50. src/qt/test/*.cpp
  51. src/qt/test/*.h
  52. src/qt/*.cpp
  53. src/qt/*.h
  54. src/script/*.cpp
  55. src/script/*.h
  56. src/secp256k1/include/*.h
  57. src/test/*.cpp
  58. src/test/*.h
  59. src/univalue/include/*.h
  60. src/univalue/lib/*.cpp
  61. src/univalue/lib/*.h
  62. src/wallet/test/*.cpp
  63. src/wallet/*.cpp
  64. src/wallet/*.h
  65. src/zmq/*.cpp
  66. src/zmq/*.h
  67. src/*.cpp
  68. src/*.h
  69. src/evo/*.h
  70. src/evo/*.cpp
  71. src/llmq/*.h
  72. src/llmq/*.cpp
  73. src/rpc/*.cpp
  74. src/rpc/*.h
  75. )
  76. add_executable(ruxcrypto ${SOURCE_FILES})