2017-08-16 11:21:12 +00:00
|
|
|
add_executable(lllc main.cpp)
|
|
|
|
target_link_libraries(lllc PRIVATE lll)
|
2014-05-26 09:22:19 +00:00
|
|
|
|
2018-01-16 15:16:14 +00:00
|
|
|
if (INSTALL_LLLC)
|
|
|
|
include(GNUInstallDirs)
|
|
|
|
install(TARGETS lllc DESTINATION ${CMAKE_INSTALL_BINDIR})
|
|
|
|
|
|
|
|
if(LLLC_LINK_STATIC AND UNIX AND NOT APPLE)
|
|
|
|
# Produce lllc as statically linked binary (includes C/C++ standard libraries)
|
|
|
|
# This is not supported on macOS, see
|
|
|
|
# https://developer.apple.com/library/content/qa/qa1118/_index.html.
|
|
|
|
set_target_properties(
|
|
|
|
lllc PROPERTIES
|
|
|
|
LINK_FLAGS -static
|
|
|
|
LINK_SEARCH_START_STATIC ON
|
|
|
|
LINK_SEARCH_END_STATIC ON
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
endif()
|