summaryrefslogtreecommitdiff
path: root/src/utils/CMakeLists.txt
blob: 652575b4056d5572cfe4e6e69f20d81fdccac642 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# ----------------------------------------------------------------------------
# Target: wflinfo (executable)
# ----------------------------------------------------------------------------

if(waffle_on_mac)
    # TODO(chadv,due:waffle-1.4): Enable wflinfo on Mac.
    #
    # No one has yet verified that wflinfo successfully builds on Mac. Since it
    # may break the build, we simply disable it for now.
    return()
endif()

add_executable(wflinfo wflinfo.c)
target_link_libraries(wflinfo ${waffle_libname})
set_target_properties(wflinfo
    PROPERTIES
        RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
        )

if(waffle_on_mac)
    set_target_properties(wflinfo
        PROPERTIES
        COMPILE_FLAGS "-ObjC"
        )
endif()

install(TARGETS wflinfo DESTINATION bin)