Cleanup up on CMakeLists.txt (#1564)

This commit is contained in:
Andreas Süßenbach
2023-04-20 16:50:26 +02:00
committed by GitHub
parent 20cb37e39f
commit e1d6ec8abf
23 changed files with 571 additions and 838 deletions

View File

@@ -12,30 +12,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.
cmake_minimum_required(VERSION 3.2)
cmake_minimum_required( VERSION 3.2 )
project(DispatchLoaderDynamicSharedLibrary LANGUAGES CXX)
vulkan_hpp__setup_library( NAME DispatchLoaderDynamicSharedLibrary SHARED SOURCES DispatchLoaderDynamicSharedLibrary.cpp )
set(HEADERS
)
target_compile_definitions( DispatchLoaderDynamicSharedLibrary PRIVATE VULKAN_HPP_DISPATCH_LOADER_DYNAMIC=1 VULKAN_HPP_STORAGE_SHARED VULKAN_HPP_STORAGE_SHARED_EXPORT )
set(SOURCES
DispatchLoaderDynamicSharedLibrary.cpp
)
source_group(headers FILES ${HEADERS})
source_group(sources FILES ${SOURCES})
add_library(DispatchLoaderDynamicSharedLibrary SHARED
${HEADERS}
${SOURCES}
)
target_compile_definitions(DispatchLoaderDynamicSharedLibrary PRIVATE VULKAN_HPP_DISPATCH_LOADER_DYNAMIC=1 VULKAN_HPP_STORAGE_SHARED VULKAN_HPP_STORAGE_SHARED_EXPORT )
if (UNIX)
target_link_libraries(DispatchLoaderDynamicSharedLibrary PRIVATE ${CMAKE_DL_LIBS})
if( UNIX )
target_link_libraries( DispatchLoaderDynamicSharedLibrary PRIVATE ${CMAKE_DL_LIBS} )
endif()
set_target_properties(DispatchLoaderDynamicSharedLibrary PROPERTIES FOLDER "Tests")
target_link_libraries(DispatchLoaderDynamicSharedLibrary PRIVATE utils)
set_target_properties( DispatchLoaderDynamicSharedLibrary PROPERTIES FOLDER "Tests" )
target_link_libraries( DispatchLoaderDynamicSharedLibrary PRIVATE utils )