CMakeLists.txt 827 B

1234567891011121314151617181920212223242526
  1. set (sources_dllloader
  2. DllLoader.cpp
  3. )
  4. set (sources_dllloaderloader
  5. DllLoaderLoader.cpp
  6. )
  7. if (NOT MSVC)
  8. set (CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "-static")
  9. set (CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "-static")
  10. endif ()
  11. add_executable (DllLoader ${sources_dllloader})
  12. target_link_libraries ("DllLoader" "MemoryModule")
  13. if (NOT MSVC)
  14. set_target_properties ("DllLoader" PROPERTIES SUFFIX ".exe")
  15. set_target_properties ("DllLoader" PROPERTIES LINK_FLAGS "-Wl,--image-base -Wl,0x20000000")
  16. endif ()
  17. add_executable (DllLoaderLoader ${sources_dllloaderloader})
  18. target_link_libraries ("DllLoaderLoader" "MemoryModule")
  19. if (NOT MSVC)
  20. set_target_properties ("DllLoaderLoader" PROPERTIES SUFFIX ".exe")
  21. set_target_properties ("DllLoaderLoader" PROPERTIES LINK_FLAGS "-Wl,--image-base -Wl,0x10000000")
  22. endif ()