1
0
mirror of https://github.com/CPunch/Laika.git synced 2025-11-22 20:00:11 +00:00

Added LAIKA_CNC_IP & LAIKA_CNC_PORT to cmake config

This commit is contained in:
2022-03-15 13:05:11 -05:00
parent 33219ee9d6
commit e2537efb3f
9 changed files with 25 additions and 21 deletions

View File

@@ -11,6 +11,14 @@ if(NOT LAIKA_PRIVKEY)
set(LAIKA_PRIVKEY "90305aa77023d1c1e03265c3b6af046eb58d6ec8ba650b0dffed01379feab8cc")
endif ()
if(NOT LAIKA_CNC_IP)
set(LAIKA_CNC_IP "127.0.0.1")
endif ()
if(NOT LAIKA_CNC_PORT)
set(LAIKA_CNC_PORT "13337")
endif ()
# version details
set(LAIKA_VERSION_MAJOR 0)
set(LAIKA_VERSION_MINOR 1)
@@ -31,7 +39,6 @@ add_subdirectory(libsodium)
file(GLOB_RECURSE LIBSOURCE ${CMAKE_CURRENT_SOURCE_DIR}/src/**.c ${CMAKE_CURRENT_SOURCE_DIR}/vendor/**.c)
file(GLOB_RECURSE LIBHEADERS ${CMAKE_CURRENT_SOURCE_DIR}/include/**.h)
add_library(LaikaLib STATIC ${LIBSOURCE} ${LIBHEADERS})
set_property(TARGET LaikaLib PROPERTY C_STANDARD 11)
target_link_libraries(LaikaLib PUBLIC sodium)
# add the version definitions and the 'DEBUG' preprocessor definition if we're compiling as Debug

View File

@@ -8,5 +8,7 @@
/* keys */
#define LAIKA_PUBKEY "40d5534aca77d1f5ec2bbe79dd9d0f52a78148918f95814404cefe97c34c5c27"
#define LAIKA_PRIVKEY "90305aa77023d1c1e03265c3b6af046eb58d6ec8ba650b0dffed01379feab8cc"
#define LAIKA_CNC_IP "127.0.0.1"
#define LAIKA_CNC_PORT "13337"
#endif

View File

@@ -8,5 +8,7 @@
/* keys */
#define LAIKA_PUBKEY "@LAIKA_PUBKEY@"
#define LAIKA_PRIVKEY "@LAIKA_PRIVKEY@"
#define LAIKA_CNC_IP "@LAIKA_CNC_IP@"
#define LAIKA_CNC_PORT "@LAIKA_CNC_PORT@"
#endif