mirror of
https://github.com/envytools/envytools.git
synced 2024-02-16 18:09:26 +08:00

envytools since7e2e2e9a
has required cmake 3.5 at a minimum. Let's be explicit about this minimum supported version via cmake's own dependency checking functionality. Whilst changes in easm -- specifically to FindFLEX module FLEX_TARGET -- bumped the cmake requirement to 3.5, given easm is not optional let's just bump the cmake requirement across the tree. Most major distributions currently ship cmake 3.9+. Fixes:7e2e2e9a
("easm: Fix compilation in directories with space in name.")
21 lines
605 B
CMake
21 lines
605 B
CMake
project(ENVYTOOLS C)
|
|
cmake_minimum_required(VERSION 3.5)
|
|
|
|
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-missing-braces")
|
|
|
|
add_library(envy core.c core-as.c core-dis.c g80.c gf100.c gk110.c gm107.c ctx.c falcon.c hwsq.c xtensa.c vuc.c macro.c vp1.c vcomp.c)
|
|
|
|
add_executable(envydis envydis.c)
|
|
add_executable(envyas envyas.c)
|
|
|
|
target_link_libraries(envy envyutil easm)
|
|
target_link_libraries(envydis envy)
|
|
target_link_libraries(envyas envy envyutil)
|
|
|
|
install(TARGETS envydis envy envyas
|
|
RUNTIME DESTINATION bin
|
|
LIBRARY DESTINATION lib${LIB_SUFFIX}
|
|
ARCHIVE DESTINATION lib${LIB_SUFFIX})
|
|
|
|
add_subdirectory(test)
|