2013-02-06 23:44:12 -05:00
|
|
|
|
2017-10-02 15:11:28 -04:00
|
|
|
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
|
|
|
# Clang or AppleClang
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations")
|
|
|
|
endif()
|
2013-02-06 23:44:12 -05:00
|
|
|
|
2017-10-02 15:11:28 -04:00
|
|
|
include_directories("${CMAKE_CURRENT_SOURCE_DIR}")
|
2013-02-06 23:44:12 -05:00
|
|
|
|
|
|
|
set(TOOLBOX_SRC
|
2013-02-07 19:21:47 -05:00
|
|
|
toolbox.cpp
|
2013-02-07 22:12:30 -05:00
|
|
|
mm.cpp
|
2013-08-15 23:38:41 -04:00
|
|
|
loader.cpp
|
|
|
|
rm.cpp
|
2013-02-12 17:32:31 -05:00
|
|
|
os.cpp
|
2013-05-17 20:14:30 -04:00
|
|
|
os_alias.cpp
|
2013-05-22 20:37:57 -04:00
|
|
|
os_fileinfo.cpp
|
2014-07-24 13:40:57 -04:00
|
|
|
os_gestalt.cpp
|
2015-01-23 10:26:40 -05:00
|
|
|
os_hfs_dispatch.cpp
|
|
|
|
os_highlevel.cpp
|
|
|
|
os_hwpriv.cpp
|
|
|
|
os_internal.cpp
|
2015-01-14 17:03:03 -05:00
|
|
|
os_volume.cpp
|
2013-02-14 23:09:05 -05:00
|
|
|
qd.cpp
|
2013-02-20 23:28:13 -05:00
|
|
|
sane.cpp
|
2015-02-02 17:02:57 -05:00
|
|
|
packages.cpp
|
2013-08-03 00:33:24 -04:00
|
|
|
pathnames.cpp
|
2015-02-02 20:16:30 -05:00
|
|
|
process.cpp
|
2013-03-26 23:29:08 -04:00
|
|
|
utility.cpp
|
2014-12-16 13:07:37 -05:00
|
|
|
fs_spec.cpp
|
2014-12-22 09:53:38 -05:00
|
|
|
realpath.c
|
2015-02-13 16:11:55 -05:00
|
|
|
dispatch.cpp
|
2015-02-23 11:41:07 -05:00
|
|
|
fpinfo.cpp
|
2016-02-07 23:16:04 -05:00
|
|
|
debug.cpp
|
2013-02-06 23:44:12 -05:00
|
|
|
|
2013-07-07 23:41:28 -04:00
|
|
|
)
|
|
|
|
|
2013-08-03 00:33:24 -04:00
|
|
|
add_custom_command(
|
|
|
|
OUTPUT pathnames.cpp
|
|
|
|
COMMAND ragel -p -G2 -o pathnames.cpp "${CMAKE_CURRENT_SOURCE_DIR}/pathnames.rl"
|
|
|
|
MAIN_DEPENDENCY pathnames.rl
|
|
|
|
)
|
|
|
|
|
2013-07-14 21:05:01 -04:00
|
|
|
set_source_files_properties(
|
2017-04-27 17:25:09 -04:00
|
|
|
pathnames.cpp
|
2013-07-14 21:05:01 -04:00
|
|
|
PROPERTIES
|
|
|
|
COMPILE_FLAGS
|
|
|
|
"${CMAKE_CXX_FLAGS} -Wno-unused-variable"
|
|
|
|
)
|
2013-07-07 23:41:28 -04:00
|
|
|
|
2017-04-27 17:25:09 -04:00
|
|
|
|
|
|
|
add_library(TOOLBOX_LIB ${TOOLBOX_SRC})
|
|
|
|
target_link_libraries(TOOLBOX_LIB MACOS_LIB sane)
|