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:
parent
f49e82043c
commit
7179a7b103
4 changed files with 135 additions and 68 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue