Skip to content

Commit 37fc471

Browse files
committed
Add install targets to CMakeLists
1 parent 18721c6 commit 37fc471

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

hw/vpi/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ add_library(vpidevices
1414
${CMAKE_SOURCE_DIR}/src/asm.c
1515
${CMAKE_SOURCE_DIR}/src/obj.c
1616
)
17+
install(TARGETS vpidevices LIBRARY DESTINATION lib)
1718

1819
set_target_properties(vpidevices PROPERTIES PREFIX "" SUFFIX .vpi)
1920

src/CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ add_executable(tld
2222

2323
obj.c
2424
)
25+
install(TARGETS tld)
2526
target_link_libraries(tld PUBLIC common)
2627

2728
find_package(FLEX)
@@ -47,6 +48,7 @@ add_executable(tas
4748
${FLEX_scanner_OUTPUTS}
4849
${BISON_parser_OUTPUTS}
4950
)
51+
install(TARGETS tas)
5052

5153
target_include_directories(tas PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
5254

@@ -68,6 +70,7 @@ add_executable(tsim
6870
devices/sparseram.c
6971
devices/zero_word.c
7072
)
73+
install(TARGETS tsim)
7174

7275
target_link_libraries(tsim PUBLIC common)
7376
# Plugin support needs -ldl.

src/devices/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ if(SDL)
3131
find_package(SDL2_image REQUIRED)
3232

3333
add_library(tenyrsdlled MODULE sdlled.c)
34+
install(TARGETS tenyrsdlled LIBRARY DESTINATION lib)
3435
target_link_libraries(tenyrsdlled PUBLIC common-pic)
3536
add_library(tenyrsdlvga MODULE sdlvga.c)
37+
install(TARGETS tenyrsdlvga LIBRARY DESTINATION lib)
3638
target_link_libraries(tenyrsdlvga PUBLIC common-pic)
3739

3840
# Place libraries alongside the `tsim` binary in order to be found.

0 commit comments

Comments
 (0)