forked from ariadne/pkgconf
build: chase changes for cmake & meson i hope
parent
2902141a9f
commit
1e91c245e3
|
@ -98,7 +98,8 @@ ADD_SUBDIRECTORY(libpkgconf)
|
||||||
#-------- Build and install executable --------
|
#-------- Build and install executable --------
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES(${libpkgconf_BINARY_DIR})
|
INCLUDE_DIRECTORIES(${libpkgconf_BINARY_DIR})
|
||||||
ADD_EXECUTABLE(pkgconf main.c getopt_long.c renderer-msvc.c)
|
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Icli")
|
||||||
|
ADD_EXECUTABLE(pkgconf cli/main.c cli/getopt_long.c cli/renderer-msvc.c)
|
||||||
TARGET_LINK_LIBRARIES(pkgconf libpkgconf)
|
TARGET_LINK_LIBRARIES(pkgconf libpkgconf)
|
||||||
INSTALL(TARGETS pkgconf DESTINATION bin)
|
INSTALL(TARGETS pkgconf DESTINATION bin)
|
||||||
|
|
||||||
|
|
|
@ -77,9 +77,9 @@ libpkgconf = shared_library('pkgconf',
|
||||||
|
|
||||||
|
|
||||||
pkgconf_exe = executable('pkgconf',
|
pkgconf_exe = executable('pkgconf',
|
||||||
'main.c',
|
'cli/main.c',
|
||||||
'getopt_long.c',
|
'cli/getopt_long.c',
|
||||||
'renderer-msvc.c',
|
'cli/renderer-msvc.c',
|
||||||
link_with : libpkgconf,
|
link_with : libpkgconf,
|
||||||
install : true)
|
install : true)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue