mirror of
https://github.com/Neo-Desktop/WindowsXPKg
synced 2024-12-22 12:30:17 +02:00
Update CMakeLists.txt (Refactor)
This commit is contained in:
parent
8088c455ff
commit
814b8e48fb
@ -20,12 +20,12 @@ add_custom_command(
|
|||||||
|
|
||||||
set(BUILD_SHARED_LIBS OFF)
|
set(BUILD_SHARED_LIBS OFF)
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "-static")
|
set(CMAKE_EXE_LINKER_FLAGS "-static")
|
||||||
ADD_EXECUTABLE(xpkey xp_algorithm.cpp shared.cpp bink.h)
|
ADD_EXECUTABLE(xpkey main.cpp xp.cpp key.cpp util.cpp cli.cpp bink.h)
|
||||||
TARGET_INCLUDE_DIRECTORIES(xpkey PUBLIC crypto)
|
TARGET_INCLUDE_DIRECTORIES(xpkey PUBLIC crypto)
|
||||||
TARGET_LINK_LIBRARIES(xpkey PUBLIC crypto)
|
TARGET_LINK_LIBRARIES(xpkey PUBLIC crypto)
|
||||||
add_dependencies(xpkey bink.h)
|
add_dependencies(xpkey bink.h)
|
||||||
|
|
||||||
ADD_EXECUTABLE(srv2003key server_algorithm.cpp shared.cpp bink.h)
|
ADD_EXECUTABLE(srv2003key server.cpp key.cpp util.cpp cli.cpp bink.h)
|
||||||
TARGET_INCLUDE_DIRECTORIES(srv2003key PUBLIC crypto)
|
TARGET_INCLUDE_DIRECTORIES(srv2003key PUBLIC crypto)
|
||||||
TARGET_LINK_LIBRARIES(srv2003key PUBLIC crypto)
|
TARGET_LINK_LIBRARIES(srv2003key PUBLIC crypto)
|
||||||
add_dependencies(srv2003key bink.h)
|
add_dependencies(srv2003key bink.h)
|
@ -222,7 +222,7 @@ void generate2003(char *pkey, EC_GROUP *ec, EC_POINT *generator, BIGNUM *order,
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int gen2003()
|
int main()
|
||||||
{
|
{
|
||||||
BIGNUM *a, *b, *p, *gx, *gy, *pubx, *puby, *n, *priv;
|
BIGNUM *a, *b, *p, *gx, *gy, *pubx, *puby, *n, *priv;
|
||||||
BN_CTX *ctx = BN_CTX_new();
|
BN_CTX *ctx = BN_CTX_new();
|
||||||
|
Loading…
Reference in New Issue
Block a user