inital commit
This commit is contained in:
commit
216b9c0d64
2 changed files with 177 additions and 0 deletions
17
CMakeLists.txt
Normal file
17
CMakeLists.txt
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
cmake_minimum_required(VERSION 3.10)
|
||||
|
||||
project(drmcrtcinfo)
|
||||
|
||||
set(SRC_FILES main.c)
|
||||
set(LIBS -ldrm)
|
||||
|
||||
add_executable(${PROJECT_NAME} ${SRC_FILES})
|
||||
|
||||
target_link_libraries( ${PROJECT_NAME} ${LIBS} -lstdc++fs)
|
||||
target_include_directories(${PROJECT_NAME} PRIVATE "/usr/include/libdrm/")
|
||||
add_definitions("-Wall -O2 -flto -fno-strict-aliasing")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -s")
|
||||
|
||||
|
||||
set(CMAKE_INSTALL_PREFIX "/usr")
|
||||
install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin)
|
||||
Loading…
Add table
Add a link
Reference in a new issue