# Create shared library add_library(DirectX11Engine SHARED "") # Setup sources target_sources(DirectX11Engine PRIVATE main.cpp ) # Setup header infomation target_include_directories(DirectX11Engine PRIVATE "${CMAKE_CURRENT_LIST_DIR}" ) # Setup linked library infomation target_link_libraries(DirectX11Engine PRIVATE BasaltShared ) # Enable export macro target_compile_definitions(DirectX11Engine PRIVATE BS_EXPORTING ) # Install DirectX11Engine only on Release mode install(TARGETS DirectX11Engine RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}/plugins/engine" )