From d2cfec8cd2129e93d9a15aced91d6805bbeca79a Mon Sep 17 00:00:00 2001 From: hasherezade Date: Thu, 11 Jan 2018 03:33:24 +0100 Subject: [PATCH] [BUGFIX] Added main.def --- CMakeLists.txt | 2 +- main.def | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 main.def diff --git a/CMakeLists.txt b/CMakeLists.txt index 4e357230..9f01c7e4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,7 +52,7 @@ if(PESIEVE_AS_DLL) ${hdrs} include/pe_sieve_api.h ) - add_library ( ${PROJECT_NAME} SHARED ${dll_hdrs} ${srcs} dll_main.cpp ) + add_library ( ${PROJECT_NAME} SHARED ${dll_hdrs} ${srcs} dll_main.cpp main.def) else() add_executable ( ${PROJECT_NAME} ${hdrs} ${srcs} main.cpp ) endif() diff --git a/main.def b/main.def new file mode 100644 index 00000000..7e57d3a2 --- /dev/null +++ b/main.def @@ -0,0 +1,3 @@ +LIBRARY pe-sieve +EXPORTS PESieve_help +EXPORTS PESieve_scan