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