1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2025-10-03 11:01:30 +00:00

CMake: fix Unix install and format

This commit is contained in:
Xorg 2020-05-21 18:43:34 +02:00
commit 7179a7b103
No known key found for this signature in database
GPG key ID: 1E55EE2EFF18BC1A
4 changed files with 135 additions and 68 deletions

View file

@ -1,9 +1,16 @@
add_executable(cpuid_tool cpuid_tool.c)
target_link_libraries(cpuid_tool PRIVATE cpuid)
install(TARGETS cpuid_tool
CONFIGURATIONS Debug
RUNTIME DESTINATION bin/Debug)
install(TARGETS cpuid_tool
CONFIGURATIONS Release
RUNTIME DESTINATION bin/Release)
target_link_libraries(cpuid_tool cpuid)
if(WIN32)
install(
TARGETS cpuid_tool
CONFIGURATIONS Debug
RUNTIME DESTINATION bin/Debug)
install(
TARGETS cpuid_tool
CONFIGURATIONS Release
RUNTIME DESTINATION bin/Release)
else()
install(TARGETS cpuid_tool RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()