1 2 3 4
SET(CMAKE_SHARED_LIBRARY_CREATE_FLAGS "-shared") SET(CMAKE_DL_LIBS "-lgdi32" ) SET(CMAKE_SHARED_LIBRARY_PREFIX "") SET(CMAKE_SHARED_LIBRARY_SUFFIX ".dll")